Function: consumeId()
consumeId<
C
,D
>(context
,defaultValue
?):Exclude
<D
,undefined
> |Exclude
<C
&Partial
<ConsumeId
>["id"
],undefined
>
Type parameters
• C extends object
• D = never
Parameters
• context: C
& Partial
<ConsumeId
>
• defaultValue?: D
Returns
Exclude
<D
, undefined
> | Exclude
<C
& Partial
<ConsumeId
>["id"
], undefined
>