import { endsWith } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/actions/endsWith/index.ts";
Creates an ends with validation action.
Parameters
requirement: TRequirement
The end string.
Returns
EndsWithAction<TInput, TRequirement, undefined>
An ends with action.
Creates an ends with validation action.
Type Parameters
TMessage extends ErrorMessage<EndsWithIssue<TInput, TRequirement>> | undefined
Parameters
requirement: TRequirement
The end string.
message: TMessage
The error message.
Returns
An ends with action.