UNPKG

@siren-js/client

Version:
8 lines (7 loc) 298 B
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>>;