Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/actions/notLength/notLength.ts>notLength

The modular and type safe schema library for validating structural data 🤖
Latest
function notLength
import { notLength } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/actions/notLength/notLength.ts";

Creates a not length validation action.

Type Parameters

TInput extends LengthInput
TRequirement extends number

Parameters

requirement: TRequirement

The not required length.

Returns

A not length action.

Creates a not length validation action.

Type Parameters

TInput extends LengthInput
TRequirement extends number
TMessage extends ErrorMessage<NotLengthIssue<TInput, TRequirement>> | undefined

Parameters

requirement: TRequirement

The not required length.

message: TMessage

The error message.