Skip to main content

Function: dissociate()

dissociate<C, E, D, RD, I, K, Record, Related, Data>(instance, relation): (action) => Action<C & ConsumeSerializer<Record, Related, Data> & ConsumeModel <Model<D, ModelClassInstance<D> & I>> & ConsumeRelation<RD[K]> & ConsumeId, E>

Type parameters

C extends object

E extends object

D extends object

RD extends ModelSchemaRelations<D>

I extends ModelInstance<D>

K extends string

Record

Related

Data

Parameters

instance: ModelClassInstance<D> & I

relation: ModelRelationKey<D> & K

Returns

Function

Parameters

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

Returns

Action<C & ConsumeSerializer<Record, Related, Data> & ConsumeModel <Model<D, ModelClassInstance<D> & I>> & ConsumeRelation<RD[K]> & ConsumeId, E>

Source

packages/core/src/actions/context/enhancers/crud/dissociate.ts:35