Skip to main content

Function: consumeAction()

consumeAction<C, D>(context, defaultValue?): Exclude<D, undefined> | Exclude<C & Partial <ConsumeAction>["action"], undefined>

Type parameters

C extends object

D = never

Parameters

context: C & Partial <ConsumeAction>

defaultValue?: D

Returns

Exclude<D, undefined> | Exclude<C & Partial <ConsumeAction>["action"], undefined>

Source

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