Preparing search index...
The search index is not available
@wppconnect/wa-js - v3.10.0
@wppconnect/wa-js
util
wrapFunction
Function wrapFunction
wrap
Function
<
TFunc
>
(
func
,
callback
)
:
(
(
...
args
:
InferArgs
<
TFunc
>
)
=>
InferReturn
<
TFunc
>
)
Wrap a function with the callback
Type Parameters
TFunc
extends
(
(
...
args
:
any
[]
)
=>
any
)
Parameters
func
:
TFunc
callback
:
(
(
func
:
TFunc
,
...
args
:
InferArgs
<
TFunc
>
)
=>
InferReturn
<
TFunc
>
)
(
func
,
...
args
)
:
InferReturn
<
TFunc
>
Parameters
func
:
TFunc
Rest
...
args
:
InferArgs
<
TFunc
>
Returns
InferReturn
<
TFunc
>
Returns
(
(
...
args
:
InferArgs
<
TFunc
>
)
=>
InferReturn
<
TFunc
>
)
(
...
args
)
:
InferReturn
<
TFunc
>
Parameters
Rest
...
args
:
InferArgs
<
TFunc
>
Returns
InferReturn
<
TFunc
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@wppconnect/wa-js - v3.10.0
Loading...
Wrap a function with the callback