Function: context()
context<
NC
>(contextToMerge
): <C
>(action
) =>Promise
<Action
<Awaited
<C
> &NC
,object
>>
Merge the given context into the action's current context. The context is not deeply merged.
Type parameters
• NC extends object
Parameters
• contextToMerge: NC
Returns
Function
Type parameters
• C extends object
Parameters
• action: Action
<C
>
Returns
Promise
<Action
<Awaited
<C
> & NC
, object
>>