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

    Function getShapeVariants

    • Resolves a union range to its concrete value-shape variants.

      Flattens a union range to its value-shape variants in declaration order; takes any other range to the singleton [shape]. Every returned variant is a concrete value shape, never a nested union, so callers route each branch without flattening again.

      Parameters

      • shape: Lazy<Shape>

        The range shape to enumerate

      Returns readonly ValuesShape[]

      The value-shape variants in declaration order, or the singleton [shape] for a non-union range

      If shape transitively references itself, producing a circular extends chain