Function: param()
param(
key
,value
?): <C
>(action
) =>Promise
<Action
<Awaited
<C
> &object
,object
>>
Set the given query param on the request. The new params will be merged with the previous ones.
Parameters
• key: string
| Dictionary
• value?: unknown
Returns
Function
Type parameters
• C extends object
Parameters
• action: Action
<C
>
Returns
Promise
<Action
<Awaited
<C
> & object
, object
>>