Documentation
    Preparing search index...

    Type Alias ExclusiveMinimum<Value>

    ExclusiveMinimum: tags.TagBase<
        {
            exclusive: ["exclusiveMinimum", "minimum"];
            kind: "exclusiveMinimum";
            schema: Value extends bigint
                ? { exclusiveMinimum: Numeric<Value> }
                : { exclusiveMinimum: Value };
            target: Value extends bigint ? "bigint" : "number";
            validate: `${Cast<Value>} < $input`;
            value: Value;
        },
    >

    Exclusive minimum value constraint (value > min).

    ExclusiveMinimum<N> is a type tag that validates numeric values are strictly greater than the specified bound (not equal). Apply it to number or bigint properties using TypeScript intersection types.

    This constraint is mutually exclusive with Minimum - you cannot use both on the same property. Use ExclusiveMinimum for exclusive bounds (>) and Minimum for inclusive bounds (>=).

    The constraint is enforced at runtime by typia.is(), typia.assert(), and typia.validate(). It also generates exclusiveMinimum in JSON Schema.

    Type Parameters

    • Value extends number | bigint

      The minimum bound (exclusive - value must be greater)

    Jeongho Nam - https://github.com/samchon

    interface PositiveNumber {
    // Must be greater than 0, not equal to 0
    value: number & ExclusiveMinimum<0>;
    }