import { endsWith } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/src/actions/endsWith/endsWith.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.