Skip to main content
Module

x/zod/index.ts>z.ZodPromise

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

Type Parameters

T extends ZodTypeAny

Methods

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

Static Properties

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