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

x/valibot/src/transformations/toMinValue/toMinValue.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.9.0/src/transformations/toMinValue/toMinValue.ts";

Creates a transformation function 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.