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

x/valibot/src/actions/decimal/decimal.ts>decimal

The modular and type safe schema library for validating structural data 🤖
Latest
function decimal
import { decimal } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/decimal/decimal.ts";

Creates a decimal validation action.

Type Parameters

TInput extends string

Returns

DecimalAction<TInput, undefined>

An decimal action.

Creates a decimal validation action.

Type Parameters

TInput extends string
TMessage extends ErrorMessage<DecimalIssue<TInput>> | undefined

Parameters

message: TMessage

The error message.

Returns

An decimal action.