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