diff --git a/uni_modules/uni-getLocation-tencent/utssdk/interface.uts b/uni_modules/uni-getLocation-tencent/utssdk/interface.uts index 3ed7b507912373ebc6817f5f3ecd8e823391dcf4..ca1ce9300640c8510da574018aaaa6bf42feb2e8 100644 --- a/uni_modules/uni-getLocation-tencent/utssdk/interface.uts +++ b/uni_modules/uni-getLocation-tencent/utssdk/interface.uts @@ -4,7 +4,7 @@ export interface Uni { * * @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation */ - getLocation: GetLocation; + getLocation(options: GetLocationOptions) : void; } export type GetLocation = (options: GetLocationOptions) => void; diff --git a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts index edf8bc75a9cdbc420503cf3fdb7eca5696a31a54..b3a60ca1dcc451559554cbcaf4eedf524e6013eb 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/interface.uts +++ b/uni_modules/uni-getbatteryinfo/utssdk/interface.uts @@ -107,7 +107,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * */ - getBatteryInfo : GetBatteryInfo, + getBatteryInfo(options : GetBatteryInfoOptions) : void, /** * 同步获取电池电量信息 * @description 获取电池电量信息 @@ -134,6 +134,6 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * */ - getBatteryInfoSync: GetBatteryInfoSync + getBatteryInfoSync() : GetBatteryInfoResult } \ No newline at end of file diff --git a/uni_modules/uni-memorywarning/utssdk/interface.uts b/uni_modules/uni-memorywarning/utssdk/interface.uts index 49eba7477e7e3d8e39a68d770dd5acc83c828f53..5e11ec45b24fb0ba56d204fc2a9eab50d255b807 100644 --- a/uni_modules/uni-memorywarning/utssdk/interface.uts +++ b/uni_modules/uni-memorywarning/utssdk/interface.uts @@ -27,7 +27,7 @@ export interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - onMemoryWarning : OnMemoryWarning, + onMemoryWarning(callback: UTSCallback) : void, /** * 取消监听内存不足告警事件 * @@ -51,5 +51,5 @@ export interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - offMemoryWarning : OffMemoryWarning + offMemoryWarning(callback : UTSCallback | null) : void } \ No newline at end of file diff --git a/uni_modules/uni-usercapturescreen/utssdk/interface.uts b/uni_modules/uni-usercapturescreen/utssdk/interface.uts index 9b9348372a5e7c3df233f953b0918b77bfda437d..ad625eeabe1b50007ac3eff7d7f5211f105c406d 100644 --- a/uni_modules/uni-usercapturescreen/utssdk/interface.uts +++ b/uni_modules/uni-usercapturescreen/utssdk/interface.uts @@ -91,7 +91,7 @@ export interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - onUserCaptureScreen : OnUserCaptureScreen, + onUserCaptureScreen(callback : UserCaptureScreenCallback | null) : void, /** * 关闭截屏监听 * @@ -115,7 +115,7 @@ export interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - offUserCaptureScreen : OffUserCaptureScreen, + offUserCaptureScreen(callback : UserCaptureScreenCallback | null) : void, /** * 设置防截屏 * @@ -138,5 +138,5 @@ export interface Uni { * @uniVersion 3.7.7 * @uniVueVersion 2,3 //支持的vue版本 */ - setUserCaptureScreen : SetUserCaptureScreen + setUserCaptureScreen(options : SetUserCaptureScreenOptions) : void } \ No newline at end of file diff --git a/uni_modules/uni-wifi/utssdk/interface.uts b/uni_modules/uni-wifi/utssdk/interface.uts index 393ab7656d221c31a88ae16004a7abe496f0ad8d..14cdbf0f704f04044bc195e35a9efb2af80e62bb 100644 --- a/uni_modules/uni-wifi/utssdk/interface.uts +++ b/uni_modules/uni-wifi/utssdk/interface.uts @@ -101,7 +101,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { after: 'stopWifi' } */ - startWifi : StartWifi, + startWifi(option : WifiOption): void, /** * 关闭 Wi-Fi 模块 * @@ -125,7 +125,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { before: 'startWifi' } */ - stopWifi : StopWifi, + stopWifi(option : WifiOption) : void, /** * @param {WifiConnectOption} option * @tutorial https://uniapp.dcloud.net.cn/api/system/wifi.html#connectWifi @@ -165,7 +165,7 @@ interface Uni { ] } */ - connectWifi : ConnectWifi, + connectWifi(option : WifiConnectOption) : void, /** * 请求获取 Wi-Fi 列表。wifiList 数据会在 onGetWifiList 注册的回调中返回。 * @param {WifiOption} option @@ -188,7 +188,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { before: 'startWifi', after: 'stopWifi' } */ - getWifiList : GetWifiList, + getWifiList(option : WifiOption) : void, /** * 监听获取到 Wi-Fi 列表数据事件。 * @@ -228,7 +228,7 @@ interface Uni { ] } */ - onGetWifiList : OnGetWifiList, + onGetWifiList(callback : UniWifiCallback) : void, /** * 移除获取到 Wi-Fi 列表数据事件的监听函数。 * @@ -252,7 +252,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - offGetWifiList : OffGetWifiList, + offGetWifiList(callback : UniWifiCallback) : void, /** * 获取已连接的 Wi-Fi 信息 * @@ -276,7 +276,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { before: 'startWifi', after: 'stopWifi' } */ - getConnectedWifi : GetConnectedWifi, + getConnectedWifi(option : GetConnectedWifiOptions) : void, /** * 监听连接上 Wi-Fi 的事件 * @@ -300,7 +300,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - onWifiConnected : OnWifiConnected, + onWifiConnected(callback : UniWifiCallback) : void, /** * 监听连接上 Wi-Fi 的事件。 * @@ -324,7 +324,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - onWifiConnectedWithPartialInfo : OnWifiConnectedWithPartialInfo, + onWifiConnectedWithPartialInfo(callback : UniWifiCallback) : void, /** * 移除连接上 Wi-Fi 的事件的监听函数。 * @@ -348,7 +348,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - offWifiConnected : OffWifiConnected, + offWifiConnected(callback : UniWifiCallback | null) : void, /** * 移除连接上 Wi-Fi 的事件的监听函数。 * @@ -372,7 +372,7 @@ interface Uni { * @uniVueVersion 2,3 //支持的vue版本 * @autotest { expectCallback: true } */ - onOffWifiConnectedWithPartialInfo : OnOffWifiConnectedWithPartialInfo, + onOffWifiConnectedWithPartialInfo(callback : UniWifiCallback | null) : void, /** * SetWifiList 暂未实现 * @@ -391,5 +391,5 @@ interface Uni { * } * } */ - setWifiList : SetWifiList, + setWifiList(option : WifiOption) : void, } \ No newline at end of file