Skip to content

Package @reatom/zod/namespaces/v4

v4

Interfaces

Atom()

Defined in: packages/zod/src/v4.ts:34

Extends

Type Parameters

T

T = any

Params

Params extends any[] = [T]

Atom(…params): T

Defined in: packages/zod/src/v4.ts:34

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

T

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomAtom.__reatom

extend

extend: Extend<Atom<T, Params>>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomAtom.extend

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomAtom.subscribe

Methods

set()
Call Signature

set(update): T

Defined in: packages/core/build/core/atom.d.ts:82

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => T

Function that takes the current state and returns a new state

Returns

T

The new state value

Inherited from

ReatomAtom.set

Call Signature

set(…params): T

Defined in: packages/core/build/core/atom.d.ts:89

Set the atom’s state to a new value

Parameters
params

Params

Returns

T

The new state value

Inherited from

ReatomAtom.set


BooleanAtom()

Defined in: packages/zod/src/v4.ts:39

Extends

BooleanAtom(…params): boolean

Defined in: packages/zod/src/v4.ts:39

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

boolean

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomBooleanAtom.__reatom

extend

extend: Extend<BooleanAtom>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomBooleanAtom.extend

reset

reset: Action<[], boolean>

Defined in: packages/core/build/primitives/reatomBoolean.d.ts:6

Inherited from

ReatomBooleanAtom.reset

setFalse

setFalse: Action<[], false>

Defined in: packages/core/build/primitives/reatomBoolean.d.ts:5

Inherited from

ReatomBooleanAtom.setFalse

setTrue

setTrue: Action<[], true>

Defined in: packages/core/build/primitives/reatomBoolean.d.ts:4

Inherited from

ReatomBooleanAtom.setTrue

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomBooleanAtom.subscribe

toggle

toggle: Action<[], boolean>

Defined in: packages/core/build/primitives/reatomBoolean.d.ts:3

Inherited from

ReatomBooleanAtom.toggle

Methods

set()
Call Signature

set(update): boolean

Defined in: packages/core/build/core/atom.d.ts:82

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => boolean

Function that takes the current state and returns a new state

Returns

boolean

The new state value

Inherited from

ReatomBooleanAtom.set

Call Signature

set(…params): boolean

Defined in: packages/core/build/core/atom.d.ts:89

Set the atom’s state to a new value

Parameters
params

…[boolean]

Returns

boolean

The new state value

Inherited from

ReatomBooleanAtom.set


Computed()

Defined in: packages/zod/src/v4.ts:37

Extends

Type Parameters

T

T = any

Computed(…params): T

Defined in: packages/zod/src/v4.ts:37

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

T

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomComputed.__reatom

extend

extend: Extend<Computed<T>>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomComputed.extend

set

set: unknown

Defined in: packages/core/build/core/atom.d.ts:46

Inherited from

ReatomComputed.set

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomComputed.subscribe


LinkedListAtom()

Defined in: packages/zod/src/v4.ts:56

Extends

  • ZodAtom<Model[]>.LinkedListAtom<Params, Model>

Type Parameters

Params

Params extends any[] = any[]

Model

Model extends Rec = Rec

LinkedListAtom(…params): LinkedList

Defined in: packages/zod/src/v4.ts:56

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

LinkedList

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomLinkedListAtom.__reatom

__reatomLinkedList

__reatomLinkedList: true

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:49

Inherited from

ReatomLinkedListAtom.__reatomLinkedList

array

array: Computed<LLNode<Model>[]>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:48

Inherited from

ReatomLinkedListAtom.array

batch

batch: Action<[Fn]>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:52

Inherited from

ReatomLinkedListAtom.batch

clear

clear: Action<[], void>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:59

Inherited from

ReatomLinkedListAtom.clear

create

create: Action<Params, LLNode<Model>>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:53

Inherited from

ReatomLinkedListAtom.create

createMany

createMany: Action<[Params[]], LLNode<Model>[]>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:54

Inherited from

ReatomLinkedListAtom.createMany

extend

extend: Extend<LinkedListAtom<Params, Model>>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomLinkedListAtom.extend

find()

find: (cb) => LLNode<Model> | null

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:60

Parameters
cb

(node) => boolean

Returns

LLNode<Model> | null

Inherited from

ReatomLinkedListAtom.find

initiateFromSnapshot()

initiateFromSnapshot: (initSnapshot) => LinkedList<LLNode<Model>>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:67

Parameters
initSnapshot

Params[]

Returns

LinkedList<LLNode<Model>>

Inherited from

ReatomLinkedListAtom.initiateFromSnapshot

initiateFromState()

initiateFromState: (initState) => LinkedList<LLNode<Model>>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:66

Parameters
initState

Model[]

Returns

LinkedList<LLNode<Model>>

Inherited from

ReatomLinkedListAtom.initiateFromState

map

map: never

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:65

This lazy map is useful for working with serializable identifier, but it is not recommended to use it for large (thousands elements) lists

Inherited from

ReatomLinkedListAtom.map

move

move: Action<[LLNode<Model>, LLNode<Model> | null], void>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:58

Inherited from

ReatomLinkedListAtom.move

reatomMap()

reatomMap: <T>(cb, options?) => LinkedListDerivedAtom<LLNode<Model>, LLNode<T>>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:68

Type Parameters
T

T extends Rec

Parameters
cb

(node) => T

options?

string | { name?: string; onClear?: (lastState) => void; onCreate?: (node) => void; onMove?: (node) => void; onRemove?: (node, origin) => void; onSwap?: (payload) => void; }

Returns

LinkedListDerivedAtom<LLNode<Model>, LLNode<T>>

Inherited from

ReatomLinkedListAtom.reatomMap

remove

remove: Action<[LLNode<Model>], boolean>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:55

Inherited from

ReatomLinkedListAtom.remove

removeMany

removeMany: Action<[LLNode<Model>[]], number>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:56

Inherited from

ReatomLinkedListAtom.removeMany

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomLinkedListAtom.subscribe

swap

swap: Action<[LLNode<Model>, LLNode<Model>], void>

Defined in: packages/core/build/primitives/reatomLinkedList.d.ts:57

Inherited from

ReatomLinkedListAtom.swap

Methods

set()
Call Signature

set(update): LinkedList

Defined in: packages/core/build/core/atom.d.ts:82

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => LinkedList

Function that takes the current state and returns a new state

Returns

LinkedList

The new state value

Inherited from

ReatomLinkedListAtom.set

Call Signature

set(…params): LinkedList

Defined in: packages/core/build/core/atom.d.ts:89

Set the atom’s state to a new value

Parameters
params

…[LinkedList<LLNode<Model>>]

Returns

LinkedList

The new state value

Inherited from

ReatomLinkedListAtom.set


MapAtom()

Defined in: packages/zod/src/v4.ts:51

Extends

  • ZodAtom<[Key, Element]>.MapAtom<Key, Element>

Type Parameters

Key

Key

Element

Element

MapAtom(…params): Map

Defined in: packages/zod/src/v4.ts:51

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

Map

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomMapAtom.__reatom

clear

clear: Action<[], Map<Key, Element>>

Defined in: packages/core/build/primitives/reatomMap.d.ts:23

Inherited from

ReatomMapAtom.clear

delete

delete: Action<[Key], Map<Key, Element>>

Defined in: packages/core/build/primitives/reatomMap.d.ts:22

Inherited from

ReatomMapAtom.delete

extend

extend: Extend<MapAtom<Key, Element>>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomMapAtom.extend

getOrCreate()

getOrCreate: (key, creator) => Element

Defined in: packages/core/build/primitives/reatomMap.d.ts:20

Parameters
key

Key

creator

() => Element

Returns

Element

Inherited from

ReatomMapAtom.getOrCreate

reset

reset: Action<[], Map<Key, Element>>

Defined in: packages/core/build/primitives/reatomMap.d.ts:24

Inherited from

ReatomMapAtom.reset

set

set: Action<[Key, Element], Map<Key, Element>>

Defined in: packages/core/build/primitives/reatomMap.d.ts:21

Inherited from

ReatomMapAtom.set

size

size: Computed<number>

Defined in: packages/core/build/primitives/reatomMap.d.ts:25

Inherited from

ReatomMapAtom.size

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomMapAtom.subscribe

Methods

setState()
Call Signature

setState(update): Map<Key, Element>

Defined in: packages/core/build/primitives/reatomMap.d.ts:12

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => StateInit<Key, Element>

Function that takes the current state and returns a new state

Returns

Map<Key, Element>

The new state value

Inherited from

ReatomMapAtom.setState

Call Signature

setState(newState): Map<Key, Element>

Defined in: packages/core/build/primitives/reatomMap.d.ts:19

Set the atom’s state to a new value

Parameters
newState

StateInit<Key, Element>

The new state value

Returns

Map<Key, Element>

The new state value

Inherited from

ReatomMapAtom.setState


NumberAtom()

Defined in: packages/zod/src/v4.ts:41

Extends

NumberAtom(…params): number

Defined in: packages/zod/src/v4.ts:41

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

number

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

Atom.__reatom

decrement

decrement: Action<[number], number>

Defined in: packages/core/build/primitives/reatomNumber.d.ts:4

Inherited from

ReatomNumberAtom.decrement

extend

extend: Extend<NumberAtom>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomNumberAtom.extend

increment

increment: Action<[number], number>

Defined in: packages/core/build/primitives/reatomNumber.d.ts:3

Inherited from

ReatomNumberAtom.increment

random

random: Action<[number, number], number>

Defined in: packages/core/build/primitives/reatomNumber.d.ts:5

Inherited from

ReatomNumberAtom.random

reset

reset: Action<[], number>

Defined in: packages/core/build/primitives/reatomNumber.d.ts:6

Inherited from

ReatomNumberAtom.reset

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomNumberAtom.subscribe

Methods

set()
Call Signature

set(update): number

Defined in: packages/core/build/core/atom.d.ts:82

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => number

Function that takes the current state and returns a new state

Returns

number

The new state value

Inherited from

ReatomNumberAtom.set

Call Signature

set(…params): number

Defined in: packages/core/build/core/atom.d.ts:89

Set the atom’s state to a new value

Parameters
params

…[number]

Returns

number

The new state value

Inherited from

ReatomNumberAtom.set


RecordAtom()

Defined in: packages/zod/src/v4.ts:48

Extends

Type Parameters

T

T extends Rec

RecordAtom(…params): T

Defined in: packages/zod/src/v4.ts:48

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

T

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomRecordAtom.__reatom

extend

extend: Extend<RecordAtom<T>>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomRecordAtom.extend

merge

merge: Action<[Partial<T>], T>

Defined in: packages/core/build/primitives/reatomRecord.d.ts:4

Inherited from

ReatomRecordAtom.merge

omit

omit: Action<keyof T[], T>

Defined in: packages/core/build/primitives/reatomRecord.d.ts:5

Inherited from

ReatomRecordAtom.omit

reset

reset: Action<keyof T[], T>

Defined in: packages/core/build/primitives/reatomRecord.d.ts:6

Inherited from

ReatomRecordAtom.reset

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomRecordAtom.subscribe

Methods

set()
Call Signature

set(update): T

Defined in: packages/core/build/core/atom.d.ts:82

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => T

Function that takes the current state and returns a new state

Returns

T

The new state value

Inherited from

ReatomRecordAtom.set

Call Signature

set(…params): T

Defined in: packages/core/build/core/atom.d.ts:89

Set the atom’s state to a new value

Parameters
params

…[T]

Returns

T

The new state value

Inherited from

ReatomRecordAtom.set


SetAtom()

Defined in: packages/zod/src/v4.ts:54

Extends

Type Parameters

T

T

SetAtom(…params): Set

Defined in: packages/zod/src/v4.ts:54

Call the atom to either read or update its state.

Parameters

params

…[]

Parameters to pass to the atom

Returns

Set

The atom’s payload (typically its current state)

Properties

__reatom

__reatom: AtomMeta

Defined in: packages/core/build/core/atom.d.ts:63

Reference to the atom’s internal metadata.

Inherited from

ReatomSetAtom.__reatom

add

add: Action<[T], Set<T>>

Defined in: packages/core/build/primitives/reatomSet.d.ts:4

Inherited from

ReatomSetAtom.add

clear

clear: Action<[], Set<T>>

Defined in: packages/core/build/primitives/reatomSet.d.ts:7

Inherited from

ReatomSetAtom.clear

delete

delete: Action<[T], Set<T>>

Defined in: packages/core/build/primitives/reatomSet.d.ts:5

Inherited from

ReatomSetAtom.delete

extend

extend: Extend<SetAtom<T>>

Defined in: packages/core/build/core/atom.d.ts:51

Extension system to add capabilities to atoms. Allows adding middleware, methods, or other functionality to modify atom behavior.

Inherited from

ReatomSetAtom.extend

reset

reset: Action<[], Set<T>>

Defined in: packages/core/build/primitives/reatomSet.d.ts:8

Inherited from

ReatomSetAtom.reset

size

size: Computed<number>

Defined in: packages/core/build/primitives/reatomSet.d.ts:9

Inherited from

ReatomSetAtom.size

subscribe()

subscribe: (cb?) => Unsubscribe

Defined in: packages/core/build/core/atom.d.ts:61

Subscribe to state changes, with the first call happening immediately. When a subscriber is added, the callback is immediately invoked with the current state. After that, it’s called whenever the atom’s state changes.

Parameters
cb?

(state) => any

Callback function that receives the atom’s state when it changes

Returns

Unsubscribe

An unsubscribe function that removes the subscription when called

Inherited from

ReatomSetAtom.subscribe

toggle

toggle: Action<[T], Set<T>>

Defined in: packages/core/build/primitives/reatomSet.d.ts:6

Inherited from

ReatomSetAtom.toggle

Methods

set()
Call Signature

set(update): Set

Defined in: packages/core/build/core/atom.d.ts:82

Update the atom’s state using a function that receives the previous state

Parameters
update

(state) => Set

Function that takes the current state and returns a new state

Returns

Set

The new state value

Inherited from

ReatomSetAtom.set

Call Signature

set(…params): Set

Defined in: packages/core/build/core/atom.d.ts:89

Set the atom’s state to a new value

Parameters
params

…[StateInit<T>]

Returns

Set

The new state value

Inherited from

ReatomSetAtom.set


ZodAtom

Defined in: packages/zod/src/v4.ts:32

Extended by

Type Parameters

_T

_T

Type Aliases

PartialDeep

PartialDeep<T> = T extends BuiltIns ? T | undefined : T extends object ? T extends ReadonlyArray<any> ? T : { [K in keyof T]?: PartialDeep<T[K]> } : unknown

Defined in: packages/zod/src/v4.ts:177

Type Parameters

T

T


ZodAtomization

ZodAtomization<T, Union, Intersection> = T extends z.ZodAny ? Atom<any> : T extends z.core.$ZodBranded<infer T, infer Brand> ? ZodAtomization<T, Union, z.core.$brand<Brand> & Intersection> : T extends z.core.$ZodUnknown ? Atom<unknown & Intersection | Union> : T extends z.core.$ZodNever ? never : T extends z.core.$ZodReadonly<infer Type> ? z.infer<Type> & Intersection | Union : T extends z.core.$ZodUndefined ? Atom<undefined & Intersection | Union> : T extends z.core.$ZodVoid ? undefined & Intersection | Union : T extends z.core.$ZodNaN ? … & … | Union : T extends z.core.$ZodNull ? Atom<… | …> : T extends z.core.$ZodLiteral<…> ? … | … : … extends … ? … : …

Defined in: packages/zod/src/v4.ts:66

Type Parameters

T

T extends z.core.$ZodType

Union

Union = never

Intersection

Intersection = unknown

Variables

EXTENSIONS

const EXTENSIONS: (target, ext) => AtomLike[]

Defined in: packages/zod/src/v4.ts:191

Parameters

target

AtomLike

ext

"string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "int" | "null" | "void" | "never" | "any" | "unknown" | "date" | "interface" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "custom"

Returns

AtomLike


silentUpdate

const silentUpdate: Action<[Fn], void>

Defined in: packages/zod/src/v4.ts:187

Functions

getDefaultState()

getDefaultState(def, initState?): any

Defined in: packages/zod/src/v4.ts:196

Get default state based on Zod type definition

Parameters

def

$ZodUnknownDef | $ZodNeverDef | $ZodReadonlyDef | $ZodVoidDef | $ZodNaNDef | $ZodLiteralDef | $ZodNumberDef | $ZodStringDef | $ZodTemplateLiteralDef | $ZodSymbolDef | $ZodDateDef | $ZodArrayDef<$ZodType<unknown, unknown>> | $ZodTupleDef<TupleItems, $ZodType<unknown, unknown> | null> | $ZodRecordDef | $ZodMapDef | $ZodSetDef | $ZodEnumDef<Readonly<Record<string, EnumValue>>> | $ZodDefaultDef<$ZodType<unknown, unknown>> | $ZodPrefaultDef<$ZodType<unknown, unknown>> | $ZodTransformDef | $ZodOptionalDef<$ZodType<unknown, unknown>> | $ZodCatchDef | $ZodPipeDef<$ZodType<unknown, unknown>, $ZodType<unknown, unknown>> | $ZodLazyDef | $ZodNullableDef<$ZodType<unknown, unknown>> | $ZodUnionDef<readonly $ZodType<unknown, unknown>[]> | $ZodFileDef | $ZodCustomDef<unknown> | $ZodUndefinedDef | $ZodNullDef | $ZodBooleanDef | $ZodBigIntDef | $ZodObjectDef<Readonly<Readonly<{[k: string]: $ZodType<unknown, unknown>; }>>> | $ZodAnyDef | $ZodIntersectionDef | $ZodPromiseDef | $ZodNonOptionalDef<$ZodType<unknown, unknown>> | $ZodSuccessDef

initState?

any

Returns

any


reatomZod()

reatomZod<Schema>(schema, __namedParameters): ZodAtomization<Schema>

Defined in: packages/zod/src/v4.ts:294

Type Parameters

Schema

Schema extends $ZodTypes

Parameters

schema

Schema

__namedParameters
extend?

(target, ext) => AtomLike[]

initState?

PartialDeep<output<Schema>>

name?

string

parse?

(input) => output<Schema>

sync?

() => void

Returns

ZodAtomization<Schema>