Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/zod/index.ts>Schema#safeParseAsync

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

Parameters

data: unknown
optional
params: Partial<ParseParams>

Returns

Promise<SafeParseReturnType<Input, Output>>