Represents a link with URL and optional meta data

See

https://jsonapi.org/format/1.0/#document-links

Hierarchy

  • Link

Constructors

Properties

Constructors

  • Parameters

    • rawData: Spec.Link

      Can be a string containing an href or a LinkObject

    • Optional referringDocumentURL: URL

      The origin part of this URL will be used as prefix if rawData only refers to a pathname and not a full URL

    Returns JsonApi.Link

Properties

meta?: object

Any additional meta data

url: URL

The complete url for this link

Generated using TypeDoc