effect-io-ai

Package: effect
Module: Schema

Schema.isInt

Validates that a number is a safe integer (within the safe integer range that can be exactly represented in JavaScript).

Details

JSON Schema:

This check corresponds to the type: "integer" constraint in JSON Schema.

Arbitrary:

When generating test data with fast-check, this applies an integer: true constraint to ensure generated numbers are integers.

Signature

declare const isInt: (annotations?: Annotations.Filter) => SchemaAST.Filter<number>

Source

Since v4.0.0