Function: consumeSerializer()
consumeSerializer<
C
,Record
,Related
,Data
,D
>(context
,defaultValue
?):Value
<Exclude
<D
,undefined
>> |Value
<Exclude
<C
&Partial
<ConsumeSerializer
<Record
,Related
,Data
>>["serializer"
],undefined
>>
Type parameters
• C extends object
• Record
• Related
• Data
• D = never
Parameters
• context: C
& Partial
<ConsumeSerializer
<Record
, Related
, Data
>>
• defaultValue?: D
Returns
Value
<Exclude
<D
, undefined
>> | Value
<Exclude
<C
& Partial
<ConsumeSerializer
<Record
, Related
, Data
>>["serializer"
], undefined
>>
Source
packages/core/src/actions/context/consumers/consumeSerializer.ts:5