The target resource shape, either directly or as a lazy function to support circular and self-referential definitions
Optionalconstraints: ReferenceConstraintsOptional constraints controlling link ownership and lifecycle
An immutable ReferenceShape for validating resource references
Creates a reference shape for the given target resource shape.
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.
Always dereference ReferenceShape.shape through resource() rather than calling the factory directly, to ensure the resulting shape is fully flattened.