react-native-mobilex 开发文档
Preparing search index...
AsyncFunction
Type Alias AsyncFunction<Functions>
AsyncFunction
:
{
[
K
in
keyof
Functions
]
:
ReturnType
<
Functions
[
K
]
>
extends
Promise
<
unknown
,
>
?
Functions
[
K
]
:
(
...
params
:
Parameters
<
Functions
[
K
]
>
,
)
=>
Promise
<
ReturnType
<
Functions
[
K
]
>
>
}
将模块接口中的同步返回值统一包装为 Promise。
Client 通过 WebView 消息桥调用 Web SDK 模块,公开给 SDK 使用者的模块方法都会以异步形式返回。
Type Parameters
Functions
extends
Record
<
string
,
(
...
args
:
any
)
=>
any
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
react-native-mobilex 开发文档
Loading...
将模块接口中的同步返回值统一包装为 Promise。
Client 通过 WebView 消息桥调用 Web SDK 模块,公开给 SDK 使用者的模块方法都会以异步形式返回。