@wppconnect-team/wppconnect - v1.36.4
Preparing search index...
WAJS
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
External
Theme
OS
Light
Dark
@wppconnect-team/wppconnect - v1.36.4
Loading...
Wrap a function with the callback