effect-io-ai

Package: effect
Module: Schema

Schema.int

Ensures that the provided value is an integer number (excluding NaN, +Infinity, and -Infinity).

Signature

declare const int: <S extends Schema.Any>(annotations?: Annotations.Filter<Schema.Type<S>>) => <A extends number>(self: S & Schema<A, Schema.Encoded<S>, Schema.Context<S>>) => filter<S>

Source

Since v3.10.0