Skip to main content
Module

x/valibot/mod.ts>NumberSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface NumberSchema
implements BaseSchema<number, TOutput>
import { type NumberSchema } from "https://deno.land/x/valibot@v0.30.0/mod.ts";

Number schema type.

Type Parameters

optional
TOutput = number

Properties

type: "number"

The schema type.

message: ErrorMessage | undefined

The error message.

pipe: Pipe<number> | undefined

The validation and transformation pipeline.