Function: consumeInstance()
consumeInstance<
C
,I
,D
>(context
,defaultValue
?):I
|D
Type parameters
• C extends object
• I extends ModelInstance
• D = never
Parameters
• context: C
& Partial
<ConsumeInstance
<I
>>
• defaultValue?: D
Returns
I
| D
Source
packages/core/src/actions/context/consumers/consumeInstance.ts:5