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

x/valibot/src/actions/minValue/index.ts>minValue

The modular and type safe schema library for validating structural data 🤖
Latest
function minValue
import { minValue } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/minValue/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.