Skip to main content

Function: instanceData()

instanceData<C, Record, Related, Data>(instance): (action) => Promise <Action<Awaited<C & ConsumeSerializer<Record, Related, Data>> & object, object>>

Serialize the given instance as the context's data.

Type parameters

C extends object

Record

Related

Data

Parameters

instance: ModelInstance

Returns

Function

Parameters

action: Action<C & ConsumeSerializer<Record, Related, Data>>

Returns

Promise <Action<Awaited<C & ConsumeSerializer<Record, Related, Data>> & object, object>>

Source

packages/core/src/actions/context/enhancers/crud/instanceData.ts:22