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

    Function getShapeType

    • Resolves a shape's type field name.

      Resolves shape to its target resource shape, then takes the name of its kind: "type" property, mapped to the JSON-LD @type keyword. Yields undefined when shape resolves to no resource shape or declares no type property.

      Parameters

      Returns string | undefined

      The type property's field name, or undefined when absent

      If shape transitively references itself, producing a circular extends chain