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

    Type Alias Boxed<V, U>

    Boxed: U extends 1 ? V : readonly [V]

    Boxes a value in a singleton tuple when cardinality admits multiple values.

    Yields the bare V for scalar ranges (U extends 1) and a readonly [V] singleton tuple for unbounded or multi-valued ranges, encoding the scalar-or-tuple axis shared by every Bounds arm so each call site can stay agnostic to cardinality.

    Type Parameters

    • V

      The underlying value type

    • U extends undefined | number

      The maxCount conditioning the projection; 1 yields the bare value, any other number or undefined yields the tuple form