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

x/valibot/src/utils/index.ts

The modular and type safe schema library for validating structural data 🤖
Latest
import * as valibot from "https://deno.land/x/valibot@v1.0.0-beta.5/src/utils/index.ts";

Classes

A Valibot error with useful information.

Functions

Adds an issue to the dataset.

Returns the byte count of the input.

Returns the grapheme count of the input.

Returns the Standard Schema properties.

Returns the word count of the input.

Checks whether a string with numbers corresponds to the luhn algorithm.

Disallows inherited object properties and prevents object prototype pollution by disallowing certain keys.

Joins multiple expects values with the given separator.

Stringifies an unknown input to a literal or type string.

Creates an object entries definition from a list of keys and a schema.

Creates and returns the dot path of an issue if possible.

A generic type guard to check the kind of an object.

A generic type guard to check the type of an object.

A type guard to check if an error is a ValiError.