Skip to content

Documentation / @imvu/rest / normalizeDocument

Function: normalizeDocument() ​

ts
function normalizeDocument<T>(url, node): APIResource<T>;

Defined in: packages/rest/src/rest.ts:433

Turn one entry of a response's denormalized map into a normalized document: the canonical URL, an opaque id derived from it, and the raw data, relations and update target.

Type Parameters ​

Type ParameterDefault type
T extends objectRecord<string, any>

Parameters ​

ParameterType
urlstring
nodeAPIResourceNode<T>

Returns ​

APIResource<T>

Released under the MIT License.