UNPKG

zod

Version:

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

9 lines (8 loc) • 471 B
import type * as core from "../core/index.cjs"; import * as schemas from "./schemas.cjs"; export type input<T> = core.input<T>; export type output<T> = core.output<T>; /** See `classic/in-out.ts`. */ export declare function input<T extends core.$ZodType>(schema: T): schemas.ZodMiniType<core.input<T>, core.input<T>>; /** See `classic/in-out.ts`. */ export declare function output<T extends core.$ZodType>(schema: T): schemas.ZodMiniType<core.output<T>, core.output<T>>;