@zod/mini
Version:
TypeScript-first schema declaration and validation library with static type inference
7 lines (6 loc) • 728 B
TypeScript
import * as core from "@zod/core";
import type * as util from "@zod/core/util";
export declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => core.output<T>;
export declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => util.SafeParseResult<core.output<T>>;
export declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.output<T>>;
export declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<util.SafeParseResult<core.output<T>>>;