Skip to main content

Interface: DeserializerI<Data, Deserialized>

Deserializer converting adapter data to a deserialized set of instances.

Extended by

Type parameters

Data

Content of the adapter's original response, containing records or relations data.

Deserialized extends DeserializedData = DeserializedData

Object containing deserialized instances and other relevant deserialized data (e.g. the document for a JSON:API response).

Methods

deserialize()

deserialize(data, context): Awaitable<Deserialized>

Deserialize adapter data to a deserialized set of instances.

Parameters

data: Data

context

Returns

Awaitable<Deserialized>

Source

packages/core/src/types.ts:163