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

x/valibot/src/methods/index.ts

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
import * as valibot from "https://deno.land/x/valibot@v0.5.0/src/methods/index.ts";

Functions

Coerces the input of a scheme to match the required type.

Coerces the input of a async scheme to match the required type.

Creates a enum schema of object keys.

Merges multiple object schemas into a single one. Subsequent object schemas overwrite the previous ones.

Merges multiple async object schemas into a single one. Subsequent object schemas overwrite the previous ones.

Creates an object schema that contains not the selected keys of an existing schema.

Creates an async object schema that contains only the selected keys of an existing schema.

Parses unknown input based on a schema.

Parses unknown input based on a schema.

Creates an object schema consisting of all properties of an existing object schema set to optional.

Creates an async object schema consisting of all properties of an existing object schema set to optional.

Creates an object schema that contains only the selected keys of an existing schema.

Creates an async object schema that contains only the selected keys of an existing schema.

Creates an object schema consisting of all properties of an existing object schema set to none optional.

Creates an async object schema consisting of all properties of an existing object schema set to none optional.

Parses unknown input based on a schema.

Parses unknown input based on a schema.

Unwraps the wrapped schema.

Passes the default value to a scheme in case of an undefined input.