Preparing search index...
The search index is not available
@pistonite/workex
@pistonite/workex
public
wxWrapHandler
Function wxWrapHandler
Wrap the return type
T
of a function as a
WxPromise<T>
.
wxWrapHandler
<
T
extends
(
...
args
:
any
[]
)
=>
any
>
(
handler
:
T
,
)
:
(
...
args
:
Parameters
<
T
>
)
=>
WxPromise
<
Awaited
<
ReturnType
<
T
>
>
>
Type Parameters
T
extends
(
...
args
:
any
[]
)
=>
any
Parameters
handler
:
T
Returns
(
...
args
:
Parameters
<
T
>
)
=>
WxPromise
<
Awaited
<
ReturnType
<
T
>
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@pistonite/workex
Loading...
Wrap the return type
T
of a function as aWxPromise<T>
.