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