UNPKG

zod

Version:

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

8 lines (7 loc) 642 B
import * as core from "../core/index.cjs"; import * as schemas from "./schemas.cjs"; export declare function string<T = unknown>(params?: string | core.$ZodStringParams): schemas.ZodMiniString<T>; export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): schemas.ZodMiniNumber<T>; export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): schemas.ZodMiniBoolean<T>; export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): schemas.ZodMiniBigInt<T>; export declare function date<T = unknown>(params?: string | core.$ZodDateParams): schemas.ZodMiniDate<T>;