@siren-js/client
Version:
Siren API client library
8 lines (7 loc) • 362 B
TypeScript
import { Entity, SubEntity } from './models';
/**
* Resolves a {@linkcode SubEntity} to an {@linkcode Entity}. An
* `EmbeddedEntity` is returned as is, while an {@linkcode EmbeddedLink} is
* {@linkcode follow | followed} and {@linkcode parse | parsed}.
*/
export declare function resolve<T extends object = object>(subEntity: SubEntity): Promise<Entity<T>>;