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://dotland.deno.dev/x/pothos@release-1691259632/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>