Type Alias MultipleOf<Value>

MultipleOf<Value>: TagBase<{
    exclusive: true;
    kind: "multipleOf";
    schema: Value extends bigint
        ? {
            multipleOf: Numeric<Value>;
        }
        : {
            multipleOf: Value;
        };
    target: Value extends bigint
        ? "bigint"
        : "number";
    validate: `$input % ${Cast<Value>} === ${Value extends bigint
        ? Cast<0n>
        : 0}`;
    value: Value;
}>

Type Parameters

  • Value extends number | bigint