Search


Search something to see results

nil

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

import * as x from 'unhoax'

const schema = x.nil(x.string)

Type Parameters

  • A
  • InputA = unknown

Parameters

Returns UnionSchema<undefined | null | A, unknown>