Skip to main content
Module

x/valibot/src/actions/index.ts>FiniteAction

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

Finite action type.

Type Parameters

TInput extends number
TMessage extends ErrorMessage<FiniteIssue<TInput>> | undefined

Properties

readonly
type: "finite"

The action type.

readonly
reference: finite

The action reference.

readonly
expects: null

The expected property.

readonly
requirement: (input: number) => boolean

The validation function.

readonly
message: TMessage

The error message.