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

x/valibot/src/actions/check/index.ts>checkAsync

The modular and type safe schema library for validating structural data 🤖
Latest
function checkAsync
import { checkAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/actions/check/index.ts";

Creates a check validation action.

Parameters

requirement: (input: TInput) => MaybePromise<boolean>

The validation function.

Returns

A check action.

Creates a check validation action.

Type Parameters

TInput
TMessage extends ErrorMessage<CheckIssue<TInput>> | undefined

Parameters

requirement: (input: TInput) => MaybePromise<boolean>

The validation function.

message: TMessage

The error message.