Skip to main content
Module

x/zod/index.ts>ZodSchema#safeParseAsync

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method ZodSchema.prototype.safeParseAsync
import { ZodSchema } from "https://deno.land/x/zod@v3.19.1/index.ts";

Parameters

data: unknown
optional
params: Partial<ParseParams>

Returns

Promise<SafeParseReturnType<Input, Output>>