import { checkAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/actions/check/checkAsync.ts";
Creates a check validation action.
Parameters
requirement: (input: TInput) => MaybePromise<boolean>
The validation function.
Returns
CheckActionAsync<TInput, undefined>
A check action.
Creates a check validation action.
Type Parameters
TMessage extends ErrorMessage<CheckIssue<TInput>> | undefined
Parameters
requirement: (input: TInput) => MaybePromise<boolean>
The validation function.
message: TMessage
The error message.
Returns
A check action.