x/zod/mod.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodPromise
extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>>
import { ZodPromise } from "https://deno.land/x/zod@v3.17.3/mod.ts?s=ZodPromise";

Type Parameters

T extends ZodTypeAny[src]

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>[src]

Static Properties

create: <T extends ZodTypeAny>(schema: T, params?: RawCreateParams) => ZodPromise<T>[src]