effect-io-ai

Package: effect
Module: Schema

Schema.lessThanOrEqualTo

This schema checks whether the provided number is less than or equal to the specified maximum.

Signature

declare const lessThanOrEqualTo: <S extends Schema.Any>(maximum: number, 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