@metreeca/blue - v0.12.0
    Preparing search index...

    Type Alias Range<R, L, U>

    Cardinality-constrained value set.

    Describes both the values of a property and the values a path resolves to, stating the shape of each value and how many values are allowed.

    type Range<
        R extends Lazy<Shape> = Lazy<Shape>,
        L extends Optional<number> = Optional<number>,
        U extends Optional<number> = Optional<number>,
    > = {
        minCount: L;
        maxCount: U;
        shape: R;
    }

    Type Parameters

    • R extends Lazy<Shape> = Lazy<Shape>

      The shape of the values, possibly deferred to break definition cycles

    • L extends Optional<number> = Optional<number>

      The minimum number of values

    • U extends Optional<number> = Optional<number>

      The maximum number of values

    Index

    Properties

    minCount: L

    Minimum number of values.

    undefined sets no lower bound.

    maxCount: U

    Maximum number of values.

    undefined sets no upper bound.

    shape: R

    Shape of every value in the set.

    May be deferred to break definition cycles: resolve it with Eager before reading it as a Shape.