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

    Function eager

    • Resolves a Lazy shape to its eager form, caching the result on repeated calls.

      When given a factory, evaluates it on first call and caches the outcome; subsequent calls return the cached shape. Resource shapes are flattened during resolution; other shapes, including a resolved RangeShape, pass through unchanged.

      Type Parameters

      Parameters

      • shape: S

        A shape value or no-arg factory returning one

      Returns Resolved<S>

      The eager shape, with resource shapes flattened

      If the factory transitively references itself, producing a circular extends chain