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

    Function collection

    • Resolves the collection property a slice names.

      Gives access to the declaration of the collection, such as its cardinality bounds, without looking up the property on the shape by name.

      Type Parameters

      • S extends Lazy<ResourceShape>

        The shape of the resource holding the collection, possibly deferred to break definition cycles

      • T extends Slice<S, T>

        The slice naming the collection property

      Parameters

      • shape: S

        The shape of the resource holding the collection

      • model: T

        The slice naming the collection property

      Returns Property

      The property the slice names, whether declared by the shape or inherited

      TraceError If the shape carries no property by the name the slice states