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