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

    Function reference

    • Creates a reference shape for the given target resource shape.

      Warning

      The target shape must include an Id property. This constraint is checked at runtime but not at compile time due to limitations with recursive type inference.

      Parameters

      • shape: Lazy<ResourceShape>

        The target resource shape, either directly or as a lazy function to support circular and self-referential definitions

      Returns ReferenceShape

      A shape for validating resource references

      If shape is not a valid ResourceShape