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 🤖
Go to Latest
function minValue
import { minValue } from "https://deno.land/x/valibot@v0.1.0-to-json-schema/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.