lazy<T, Input = unknown>(getSchema: Object): Schema<T, Input>
getSchema: Object
import * as x from 'unhoax'type Tree = { left: Tree | null, right: Tree | null }const tree: x.ObjectSchema<Tree> = x.object({ left: x.nullable(x.lazy(() => tree)), right: x.nullable(x.lazy(() => tree)),}) Copy
import * as x from 'unhoax'type Tree = { left: Tree | null, right: Tree | null }const tree: x.ObjectSchema<Tree> = x.object({ left: x.nullable(x.lazy(() => tree)), right: x.nullable(x.lazy(() => tree)),})
Example