import { words } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/actions/index.ts";
Creates a words validation action.
Parameters
locales: TLocales
The locales to be used.
requirement: TRequirement
The required words.
Returns
WordsAction<TInput, TLocales, TRequirement, undefined>
A words action.
Creates a words validation action.
Type Parameters
TMessage extends ErrorMessage<WordsIssue<TInput, TRequirement>> | undefined
Parameters
locales: TLocales
The locales to be used.
requirement: TRequirement
The required words.
message: TMessage
The error message.
Returns
WordsAction<TInput, TLocales, TRequirement, TMessage>
A words action.