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

x/valibot/src/methods/safeParse/types.ts>SafeParseResult

The modular and type safe schema library for validating structural data 🤖
Latest
type alias SafeParseResult
import { type SafeParseResult } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/methods/safeParse/types.ts";

Safe parse result type.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>
definition: { readonly typed: true; readonly success: true; readonly output: InferOutput<TSchema>; readonly issues: undefined; } | { readonly typed: true; readonly success: false; readonly output: InferOutput<TSchema>; readonly issues: [InferIssue<TSchema>, ...InferIssue<TSchema>[]]; } | { readonly typed: false; readonly success: false; readonly output: unknown; readonly issues: [InferIssue<TSchema>, ...InferIssue<TSchema>[]]; }