Interface NumberSchema<N>

a schema that validates any number

interface NumberSchema<N> {
    metadata?: unknown;
    nullable?: boolean;
    type: N;
}

Type Parameters

Properties

metadata?: unknown

optional metadata on a schema

nullable?: boolean

a key indicating if a type can be null

type: N

the type