Search


Search something to see results

integer

integer: Schema<number, unknown> = ...

it accepts anything passing the check Number.isSafeInteger.

import * as x from 'unhoax'

x.integer.parse(1) // { success: true, value: 1 }