@siren-js/core
Version:
Cross-platform library of classes for generating and parsing Siren entities
29 lines (28 loc) • 898 B
TypeScript
/**
* Represent a sub-entity as a link
*/
export declare class EmbeddedLink {
/**
* List of strings describing the nature of the `Link` based on the current representation. Possible values are
* implementation-dependent and should be documented.
*/
class?: string[];
/**
* URI of the linked resource.
*/
href: string;
/**
* List of strings describing the relationship of the `Link` to its `Entity`, per [RFC 8288](https://tools.ietf.org/html/rfc8288).
*/
rel: string[];
/**
* Text describing the nature of the link.
*/
title?: string;
/**
* Hint indicating what the media type of the result of dereferencing the `Link` should be, per [RFC 8288](https://tools.ietf.org/html/rfc8288#section-3.4.1).
*/
type?: string;
[extension: string]: unknown;
static of(value: EmbeddedLink): EmbeddedLink;
}