Skip to main content

Function: consumeRegistry()

consumeRegistry<C, D>(context, defaultValue?): Value<Exclude<D, undefined>> | Value<Exclude<C & Partial <ConsumeRegistry>["registry"], undefined>>

Type parameters

C extends object

D = never

Parameters

context: C & Partial <ConsumeRegistry>

defaultValue?: D

Returns

Value<Exclude<D, undefined>> | Value<Exclude<C & Partial <ConsumeRegistry>["registry"], undefined>>

Source

packages/core/src/actions/context/consumers/consumeRegistry.ts:5