Interface Range<T>

A generic range

interface Range {
    max?: T;
    maxExclusive?: boolean;
    min?: T;
    minExclusive?: boolean;
}

Type Parameters

  • T

Properties

max?: T

The maximum allowed value.

See

maxExclusive

Default Value

no maximum
maxExclusive?: boolean

If true, the maximum value is exclusive (meaning values <, rather than <= are included)

Default Value

false

min?: T

The minimum allowed value

See

minExclusive

Default Value

no minimum
minExclusive?: boolean

If true, the minimum value is exclusive (meaning values >, rather than >= are included)

Default Value

false

Generated using TypeDoc