Skip to main content

Type alias: RestDeserializerConfig<Record, Data, Deserialized, Extract>

RestDeserializerConfig<Record, Data, Deserialized, Extract>: object & DeserializerConfig<Record, Data, Deserialized, Extract>

Type declaration

pullAttribute()

pullAttribute: (record, deserializerContext, extract) => Awaitable<unknown>

Parameters

record: Record

deserializerContext: DeserializerContext<Record, Data, Deserialized, ModelAttribute>

extract: Extract

Returns

Awaitable<unknown>

pullIdentifier()

pullIdentifier: (record, context) => Awaitable <DeserializerRecordIdentifier>

Parameters

record: Record

context

Returns

Awaitable <DeserializerRecordIdentifier>

pullRelation()

pullRelation: (record, deserializerContext, extract) => Awaitable <Arrayable<Record> | null | undefined>

Parameters

record: Record

deserializerContext: DeserializerContext<Record, Data, Deserialized, ModelRelation>

extract: Extract

Returns

Awaitable <Arrayable<Record> | null | undefined>

Type parameters

Record

Data

Deserialized extends DeserializedData

Extract extends DeserializerExtract<Record>

Source

rest/src/types.ts:28