Skip to main content

Function: update()

update<C, E, D, I, Record, Related, Data>(instance): (action) => Action<Awaited<Awaited<C & ConsumeSerializer<Record, Related, Data> & ConsumeModel <Model<D, I>> & ConsumeInstance<I> & ConsumeId> & object & ConsumeSerializer<Record, Related, Data>> & object, E>

Prepare context for an instance update.

Type parameters

C extends object

E extends object

D extends object

I extends ModelInstance<D>

Record

Related

Data

Parameters

instance: ModelClassInstance<D> & I

Returns

Function

Parameters

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

Returns

Action<Awaited<Awaited<C & ConsumeSerializer<Record, Related, Data> & ConsumeModel <Model<D, I>> & ConsumeInstance<I> & ConsumeId> & object & ConsumeSerializer<Record, Related, Data>> & object, E>

Source

packages/core/src/actions/context/enhancers/crud/update.ts:57