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