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 Parameter | Default type |
|---|---|
T extends object | Record<string, any> |
Parameters
| Parameter | Type |
|---|---|
url | string |
node | APIResourceNode<T> |
Returns
APIResource<T>