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

    Function reference

    • Creates a reference shape.

      Type Parameters

      Parameters

      • target: T

        The shape describing the resource the reference points at, possibly deferred to break definition cycles

      Returns ReferenceShape<T>

      An immutable shape admitting the IRIs naming resources of the stated target shape

      const vendor = required(reference(Vendor));
      const children = multiple(reference(Target), { foreign: true });
      const parts = multiple(reference(Part), { captive: true });