Function: when()
when(expression, truthyCallback)
when<
C
,E
,V
,TC
>(expression
,truthyCallback
):ContextEnhancer
<C
,E
,TC
>
Type parameters
• C extends object
• E extends object
• V
• TC extends object
= C
Parameters
• expression: V
• truthyCallback
Returns
ContextEnhancer
<C
, E
, TC
>
Source
packages/core/src/actions/when.ts:67
when(expression, truthyCallback, falsyCallback)
when<
C
,E
,V
,TC
,FC
>(expression
,truthyCallback
,falsyCallback
):ContextEnhancer
<C
,E
,TC
|FC
>
Type parameters
• C extends object
• E extends object
• V
• TC extends object
= C
• FC extends object
= C
Parameters
• expression: V
• truthyCallback
• falsyCallback
Returns
ContextEnhancer
<C
, E
, TC
| FC
>
Source
packages/core/src/actions/when.ts:67
when(expression, truthyCallback)
when<
C
,E
,V
,TR
>(expression
,truthyCallback
):ContextRunner
<C
,E
,void
|TR
>
Type parameters
• C extends object
• E extends object
• V
• TR
Parameters
• expression: V
• truthyCallback
Returns
ContextRunner
<C
, E
, void
| TR
>
Source
packages/core/src/actions/when.ts:67
when(expression, truthyCallback, falsyCallback)
when<
C
,E
,V
,TR
,FR
>(expression
,truthyCallback
,falsyCallback
):ContextRunner
<C
,E
,TR
|FR
>
Type parameters
• C extends object
• E extends object
• V
• TR
• FR
Parameters
• expression: V
• truthyCallback
• falsyCallback
Returns
ContextRunner
<C
, E
, TR
| FR
>