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

x/pothos/packages/plugin-validation/mod.ts>NumberValidationOptions

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
interface NumberValidationOptions
import { type NumberValidationOptions } from "https://deno.land/x/pothos@release-1695354039/packages/plugin-validation/mod.ts";

Type Parameters

optional
T extends number = number

Properties

optional
type: "number"
optional
min: Constraint<number>
optional
max: Constraint<number>
optional
positive: Constraint<boolean>
optional
nonnegative: Constraint<boolean>
optional
negative: Constraint<boolean>
optional
nonpositive: Constraint<boolean>
optional
int: Constraint<boolean>