Equivalent of or(literal(undefined, null)) (see or)
or(literal(undefined, null))
import * as x from 'unhoax'const schema = x.nil(x.string) Copy
import * as x from 'unhoax'const schema = x.nil(x.string)
nil<A, InputA = unknown>( a: Schema<A, InputA>,): UnionSchema<undefined | null | A, unknown>
a: Schema<A, InputA>
Equivalent of
or(literal(undefined, null))
(see or)See
Example