UNPKG

zod

Version:

Typescript-first schema declaration and validation library with static type inference

14 lines (13 loc) 466 B
import * as z from './base'; import { ZodUndefined } from './undefined'; import { ZodNull } from './null'; import { ZodUnion } from './union'; export interface ZodNumberDef extends z.ZodTypeDef { t: z.ZodTypes.number; } export declare class ZodNumber extends z.ZodType<number, ZodNumberDef> { optional: () => ZodUnion<[this, ZodUndefined]>; nullable: () => ZodUnion<[this, ZodNull]>; toJSON: () => ZodNumberDef; static create: () => ZodNumber; }