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

x/valibot/mod.ts>SafeIntegerAction

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface SafeIntegerAction
import { type SafeIntegerAction } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/mod.ts";

Safe integer action type.

Type Parameters

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

Properties

readonly
type: "safe_integer"

The action type.

readonly
reference: safeInteger

The action reference.

readonly
expects: null

The expected property.

readonly
requirement: (input: number) => boolean

The validation function.

readonly
message: TMessage

The error message.