import { startsWith } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/startsWith/startsWith.ts";
Creates a starts with validation action.
Parameters
requirement: TRequirement
The start string.
Returns
StartsWithAction<TInput, TRequirement, undefined>
A starts with action.
Creates a starts with validation action.
Type Parameters
TMessage extends ErrorMessage<StartsWithIssue<TInput, TRequirement>> | undefined
Parameters
requirement: TRequirement
The start string.
message: TMessage
The error message.
Returns
A starts with action.