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

x/valibot/src/index.ts>minValue

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

Creates a min value validation action.

Type Parameters

TInput extends ValueInput
TRequirement extends TInput

Parameters

requirement: TRequirement

The minimum value.

Returns

A min value action.

Creates a min value validation action.

Type Parameters

TInput extends ValueInput
TRequirement extends TInput
TMessage extends ErrorMessage<MinValueIssue<TInput, TRequirement>> | undefined

Parameters

requirement: TRequirement

The minimum value.

message: TMessage

The error message.