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

    Function getShapeTarget

    • Resolves the resource shape a shape points at.

      Crosses a reference to the shape it points at and takes a resource shape to itself, so that a caller reaching for the members behind a shape needs not tell a link from a resource carried inline. A shape describing a plain or localised value, or a union, points at no resource and yields nothing.

      Parameters

      • shape: Lazy<Shape>

        The shape to resolve, possibly deferred to break definition cycles

      Returns ResourceShape | undefined

      The resource shape shape points at, merged with the shapes it extends, or undefined where it points at none

      TraceError Where a deferred definition reaches itself, or the target is deferred and the definition it states doesn't narrow the target of the link it overrides