@siren-js/client
Version:
Siren API client library
8 lines (7 loc) • 298 B
TypeScript
import { Entity } from './models/entity';
export type Parsable = string | Record<string, unknown> | Response;
/**
* Parses `value` as an {@link Entity}
* @typeParam T - type of `Entity.properties`
*/
export declare function parse<T extends object = object>(value: Parsable): Promise<Entity<T>>;