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

x/valibot/src/index.ts>toMinValue

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function toMinValue
import { toMinValue } from "https://deno.land/x/valibot@v0.28.1/src/index.ts";

Creates a pipeline transformation action that sets a string, number or date to a minimum value.

Type Parameters

TInput extends
| string
| number
| bigint
| Date
TRequirement extends TInput

Parameters

requirement: TRequirement

The minimum value.