Skip to main content

Function: consumeAdapter()

consumeAdapter<C, RawData, Data, D>(context, defaultValue?): Value<Exclude<D, undefined>> | Value<Exclude<C & Partial <ConsumeAdapter<RawData, Data>>["adapter"], undefined>>

Type parameters

C extends object

RawData

Data

D = never

Parameters

context: C & Partial <ConsumeAdapter<RawData, Data>>

defaultValue?: D

Returns

Value<Exclude<D, undefined>> | Value<Exclude<C & Partial <ConsumeAdapter<RawData, Data>>["adapter"], undefined>>

Source

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