Type Alias Maximum<Value>

Maximum<Value>: TagBase<{
    exclusive: ["maximum", "exclusiveMaximum"];
    kind: "maximum";
    schema: Value extends bigint
        ? {
            maximum: Numeric<Value>;
        }
        : {
            maximum: Value;
        };
    target: Value extends bigint
        ? "bigint"
        : "number";
    validate: `$input <= ${Cast<Value>}`;
    value: Value;
}>

Type Parameters

  • Value extends number | bigint