effect-io-ai

Package: effect
Module: Schema

Schema.isMultipleOf

Validates that a number is a multiple of the specified divisor.

Details

JSON Schema:

This check corresponds to the multipleOf constraint in JSON Schema.

Arbitrary:

When generating test data with fast-check, this applies constraints to ensure generated numbers are multiples of the specified divisor.

Signature

declare const isMultipleOf: (divisor: number, annotations?: Annotations.Filter) => SchemaAST.Filter<number>

Source

Since v4.0.0