Skip to main content
Module

x/valibot/mod.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.23.0/mod.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.