import { includes } from "https://deno.land/x/valibot@v0.36.0/src/actions/includes/index.ts";
Creates an includes validation action.
Type Parameters
TInput extends ContentInput
TRequirement extends ContentRequirement<TInput>
Parameters
requirement: TRequirement
The content to be included.
Returns
IncludesAction<TInput, TRequirement, undefined>
An includes action.
Creates an includes validation action.
Type Parameters
TInput extends ContentInput
TRequirement extends ContentRequirement<TInput>
TMessage extends ErrorMessage<IncludesIssue<TInput, TRequirement>> | undefined
Parameters
requirement: TRequirement
The content to be included.
message: TMessage
The error message.
Returns
An includes action.