NumberThe number type with optional validation checks.
Details
checks holds number-specific constraints, such as int, finite, min, max,
multipleOf, and between checks.
modelsNumberMeta
Source effect/SchemaRepresentation.ts:2135 lines
export interface Number {
readonly Number._tag: "Number"_tag: "Number"
readonly Number.annotations?: anyannotations?: import SchemaSchema.declareAnnotations.type Schema.Annotations.Annotations = /*unresolved*/ anyAnnotations | undefined
readonly Number.checks: ReadonlyArray<Check<NumberMeta>>checks: interface ReadonlyArray<T>ReadonlyArray<type Check<M> = Filter<M> | FilterGroup<M>A validation constraint attached to a type. Either a single
Filter
or a
FilterGroup
combining multiple checks.
Check<type NumberMeta = anyMetadata union for number-specific validation checks (int, finite,
min, max, multipleOf, between).
NumberMeta>>
}Referenced by 2 symbols