From ace59dd7dcd8a1038c6bc6c9424bf60d9f0772a6 Mon Sep 17 00:00:00 2001 From: lizhongyi Date: Sat, 23 Sep 2023 12:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8F=92=E4=BB=B6Uni?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../utssdk/interface.uts | 2 +- .../uni-getbatteryinfo/utssdk/interface.uts | 4 ++-- .../uni-memorywarning/utssdk/interface.uts | 4 ++-- .../utssdk/interface.uts | 6 ++--- uni_modules/uni-wifi/utssdk/interface.uts | 24 +++++++++---------- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/uni_modules/uni-getLocation-tencent/utssdk/interface.uts b/uni_modules/uni-getLocation-tencent/utssdk/interface.uts index 3ed7b50..ca1ce93 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 edf8bc7..b3a60ca 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 49eba74..5e11ec4 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 9b93483..ad625ee 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 393ab76..14cdbf0 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 -- GitLab