Function: consumeDeserializer()
consumeDeserializer<
C
,Data
,Deserialized
,D
>(context
,defaultValue
?):Value
<Exclude
<D
,undefined
>> |Value
<Exclude
<C
&Partial
<ConsumeDeserializer
<Data
,Deserialized
>>["deserializer"
],undefined
>>
Type parameters
• C extends object
• Data
• Deserialized extends DeserializedData
<ModelInstance
> = DeserializedData
<ModelInstance
>
• D = never
Parameters
• context: C
& Partial
<ConsumeDeserializer
<Data
, Deserialized
>>
• defaultValue?: D
Returns
Value
<Exclude
<D
, undefined
>> | Value
<Exclude
<C
& Partial
<ConsumeDeserializer
<Data
, Deserialized
>>["deserializer"
], undefined
>>
Source
packages/core/src/actions/context/consumers/consumeDeserializer.ts:6