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

x/valibot/src/index.ts>StandardSchemaProps

The modular and type safe schema library for validating structural data 🤖
Latest
interface StandardSchemaProps
Re-export
import { type StandardSchemaProps } from "https://deno.land/x/valibot@v1.0.0-beta.5/src/index.ts";

The Standard Schema properties interface.

Type Parameters

Input
Output

Properties

readonly
version: 1

The version number of the standard.

readonly
vendor: "valibot"

The vendor name of the schema library.

readonly
validate: (value: unknown) => StandardResult<Output> | Promise<StandardResult<Output>>

Validates unknown input values.

readonly
optional
types: StandardTypes<Input, Output> | undefined

Inferred types associated with the schema.