semantic-network
Version:
A utility library for manipulating a list of links that form a semantic interface to a network of resources.
13 lines (12 loc) • 491 B
TypeScript
import { LinkedRepresentation, MediaType, RelationshipType, Uri } from 'semantic-link';
export interface ResourceLinkOptions {
rel?: RelationshipType;
/**
* Allows for specific implementation to override the default {@link getUri} implementation from semantic link.
* @param resource
* @param rel
*/
readonly getUri?: (resource: LinkedRepresentation, rel: RelationshipType) => Uri;
readonly mediaType?: MediaType;
readonly defaultValue?: MediaType;
}