UNPKG

zod

Version:

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

18 lines (17 loc) 1.01 kB
import * as core from "zod/v4/core"; import * as schemas from "./schemas.js"; export interface ZodCoercedString<T = unknown> extends schemas._ZodString<T> { } export declare function string<T = unknown>(params?: string | core.$ZodStringParams): ZodCoercedString<T>; export interface ZodCoercedNumber<T = unknown> extends schemas._ZodNumber<T> { } export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): ZodCoercedNumber<T>; export interface ZodCoercedBoolean<T = unknown> extends schemas._ZodBoolean<T> { } export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): ZodCoercedBoolean<T>; export interface ZodCoercedBigInt<T = unknown> extends schemas._ZodBigInt<T> { } export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): ZodCoercedBigInt<T>; export interface ZodCoercedDate<T = unknown> extends schemas._ZodDate<T> { } export declare function date<T = unknown>(params?: string | core.$ZodDateParams): ZodCoercedDate<T>;