UNPKG

semantic-network

Version:

A utility library for manipulating a list of links that form a semantic interface to a network of resources.

20 lines (19 loc) 774 B
import { StrategyType } from './types'; import { SyncOptions } from './syncOptions'; import { RelationshipType } from 'semantic-link'; import { Representation, Document } from '../../types/types'; export interface ResourceSync<T extends Representation = Representation, U extends Document = Document> { readonly resource: T; readonly document: U; readonly strategies?: StrategyType[]; readonly options?: SyncOptions; /** * Link rel on the parent (ie context) resource to be followed */ readonly rel?: RelationshipType; /** * The attribute name of the named resource that is added to the in-memory resource. This is an override value * where the default is a stringly-type of {@link rel}. */ readonly name?: string; }