Search


Search something to see results

nullable

Equivalent of or(literal(null)) (see or)

import * as x from 'unhoax'

const schema = x.nullable(x.string)

Type Parameters

  • A
  • InputA = unknown

Parameters

Returns UnionSchema<null | A, unknown>