Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zod/external.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.21.4/external.ts";

Parameters

data: unknown
optional
params: Partial<ParseParams>

Returns

Promise<SafeParseReturnType<Input, Output>>