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