Skip to main content

Function: consumeRelation()

consumeRelation<C, D>(context, defaultValue?): Exclude<D, undefined> | Exclude<C & Partial <ConsumeRelation>["relation"], undefined>

Type parameters

C extends object

D = never

Parameters

context: C & Partial <ConsumeRelation>

defaultValue?: D

Returns

Exclude<D, undefined> | Exclude<C & Partial <ConsumeRelation>["relation"], undefined>

Source

packages/core/src/actions/context/consumers/consumeRelation.ts:4