@tarojs/taro-h5 3.5.6-alpha.2 → 3.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/api/ad/index.d.ts +2 -6
  2. package/dist/api/ai/facial.d.ts +3 -9
  3. package/dist/api/ai/visual.d.ts +2 -6
  4. package/dist/api/alipay/index.d.ts +1 -3
  5. package/dist/api/base/crypto.d.ts +1 -3
  6. package/dist/api/base/debug.d.ts +3 -9
  7. package/dist/api/base/index.d.ts +1 -3
  8. package/dist/api/base/performance.d.ts +2 -6
  9. package/dist/api/base/system.d.ts +2 -8
  10. package/dist/api/base/system.js +1 -1
  11. package/dist/api/base/update.d.ts +2 -6
  12. package/dist/api/base/weapp/app-event.d.ts +12 -36
  13. package/dist/api/canvas/CanvasContext.js +1 -1
  14. package/dist/api/canvas/index.d.ts +1 -3
  15. package/dist/api/cloud/index.d.ts +9 -27
  16. package/dist/api/data-analysis/index.d.ts +4 -12
  17. package/dist/api/device/accessibility.d.ts +1 -3
  18. package/dist/api/device/battery.d.ts +1 -3
  19. package/dist/api/device/bluetooth-ble.d.ts +16 -48
  20. package/dist/api/device/bluetooth-peripheral.d.ts +3 -9
  21. package/dist/api/device/bluetooth.d.ts +13 -39
  22. package/dist/api/device/calendar.d.ts +2 -6
  23. package/dist/api/device/contact.d.ts +2 -6
  24. package/dist/api/device/crypto.d.ts +1 -3
  25. package/dist/api/device/gyroscope.d.ts +4 -12
  26. package/dist/api/device/iBeacon.d.ts +7 -21
  27. package/dist/api/device/keyboard.d.ts +4 -12
  28. package/dist/api/device/memory.d.ts +2 -6
  29. package/dist/api/device/network.d.ts +3 -9
  30. package/dist/api/device/nfc.d.ts +7 -21
  31. package/dist/api/device/screen.d.ts +6 -18
  32. package/dist/api/device/wifi.d.ts +11 -33
  33. package/dist/api/ext/index.d.ts +2 -6
  34. package/dist/api/files/index.d.ts +8 -24
  35. package/dist/api/location/index.d.ts +9 -27
  36. package/dist/api/media/EditorContext.d.ts +13 -39
  37. package/dist/api/media/audio/index.d.ts +8 -24
  38. package/dist/api/media/background-audio/BackgroundAudioManager.d.ts +4 -12
  39. package/dist/api/media/background-audio/index.d.ts +8 -24
  40. package/dist/api/media/camera.d.ts +1 -3
  41. package/dist/api/media/image/index.d.ts +4 -12
  42. package/dist/api/media/live.d.ts +2 -6
  43. package/dist/api/media/map.d.ts +1 -3
  44. package/dist/api/media/media-recorder.d.ts +1 -3
  45. package/dist/api/media/recorder.d.ts +3 -9
  46. package/dist/api/media/video/index.d.ts +5 -15
  47. package/dist/api/media/video-decoder.d.ts +1 -3
  48. package/dist/api/media/video-processing.d.ts +1 -3
  49. package/dist/api/media/voip.d.ts +14 -42
  50. package/dist/api/navigate/index.d.ts +5 -15
  51. package/dist/api/network/download.js +4 -3
  52. package/dist/api/network/mdns.d.ts +10 -30
  53. package/dist/api/network/request/index.js +5 -4
  54. package/dist/api/network/tcp.d.ts +1 -3
  55. package/dist/api/network/udp.d.ts +1 -3
  56. package/dist/api/network/upload.js +4 -3
  57. package/dist/api/open-api/account.d.ts +1 -3
  58. package/dist/api/open-api/address.d.ts +1 -3
  59. package/dist/api/open-api/authorize.d.ts +2 -6
  60. package/dist/api/open-api/card.d.ts +2 -6
  61. package/dist/api/open-api/channels-live.d.ts +6 -18
  62. package/dist/api/open-api/customer-service.d.ts +1 -3
  63. package/dist/api/open-api/facial.d.ts +4 -12
  64. package/dist/api/open-api/favorites.d.ts +2 -6
  65. package/dist/api/open-api/group.d.ts +1 -3
  66. package/dist/api/open-api/invoice.d.ts +2 -6
  67. package/dist/api/open-api/license-plate.d.ts +1 -3
  68. package/dist/api/open-api/login.d.ts +3 -9
  69. package/dist/api/open-api/red-package.d.ts +1 -3
  70. package/dist/api/open-api/settings.d.ts +2 -6
  71. package/dist/api/open-api/soter.d.ts +3 -9
  72. package/dist/api/open-api/subscribe-message.d.ts +1 -3
  73. package/dist/api/open-api/user-info.d.ts +2 -6
  74. package/dist/api/open-api/werun.d.ts +2 -6
  75. package/dist/api/payment/index.d.ts +2 -6
  76. package/dist/api/share/index.d.ts +10 -30
  77. package/dist/api/storage/background-fetch.d.ts +4 -12
  78. package/dist/api/storage/index.d.ts +2 -6
  79. package/dist/api/swan/index.d.ts +21 -63
  80. package/dist/api/taro.d.ts +1 -3
  81. package/dist/api/ui/background.d.ts +2 -6
  82. package/dist/api/ui/interaction/index.d.ts +2 -6
  83. package/dist/api/ui/menu.d.ts +1 -3
  84. package/dist/api/ui/navigation-bar/index.d.ts +3 -9
  85. package/dist/api/ui/sticky.d.ts +1 -3
  86. package/dist/api/ui/window.d.ts +1 -3
  87. package/dist/api/worker/index.d.ts +1 -3
  88. package/dist/api/wxml/index.d.ts +1 -3
  89. package/dist/index.cjs.d.ts +306 -918
  90. package/dist/index.cjs.js +142 -129
  91. package/dist/index.cjs.js.map +1 -1
  92. package/dist/index.esm.d.ts +306 -918
  93. package/dist/index.esm.js +142 -129
  94. package/dist/index.esm.js.map +1 -1
  95. package/dist/taroApis.d.ts +305 -915
  96. package/dist/utils/index.d.ts +4 -9
  97. package/dist/utils/index.js +48 -36
  98. package/package.json +4 -4
@@ -1,6 +1,2 @@
1
- export declare const createRewardedVideoAd: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const createInterstitialAd: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const createRewardedVideoAd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const createInterstitialAd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,9 +1,3 @@
1
- export declare const stopFaceDetect: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const initFaceDetect: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const faceDetect: () => Promise<{
8
- errMsg: string;
9
- }>;
1
+ export declare const stopFaceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const initFaceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const faceDetect: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,6 +1,2 @@
1
- export declare const isVKSupport: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const createVKSession: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const isVKSupport: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const createVKSession: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,3 +1 @@
1
- export declare const getOpenUserInfo: () => Promise<{
2
- errMsg: string;
3
- }>;
1
+ export declare const getOpenUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,3 +1 @@
1
- export declare const getUserCryptoManager: () => Promise<{
2
- errMsg: string;
3
- }>;
1
+ export declare const getUserCryptoManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,9 +1,3 @@
1
- export declare const setEnableDebug: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const getRealtimeLogManager: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const getLogManager: () => Promise<{
8
- errMsg: string;
9
- }>;
1
+ export declare const setEnableDebug: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const getRealtimeLogManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const getLogManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,6 +1,4 @@
1
- export declare const canIUse: () => Promise<{
2
- errMsg: string;
3
- }>;
1
+ export declare const canIUse: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
2
  export declare function arrayBufferToBase64(arrayBuffer: any): string;
5
3
  export declare function base64ToArrayBuffer(base64: any): Uint8Array;
6
4
  export * from './crypto';
@@ -1,6 +1,2 @@
1
- export declare const reportPerformance: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const getPerformance: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const reportPerformance: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const getPerformance: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,14 +1,8 @@
1
1
  import Taro from '@tarojs/api';
2
2
  /** 跳转系统蓝牙设置页 */
3
- export declare const openSystemBluetoothSetting: () => Promise<{
4
- /** 微信版本号 */
5
- errMsg: string;
6
- }>;
3
+ export declare const openSystemBluetoothSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
4
  /** 跳转系统微信授权管理页 */
8
- export declare const openAppAuthorizeSetting: () => Promise<{
9
- /** 微信版本号 */
10
- errMsg: string;
11
- }>;
5
+ export declare const openAppAuthorizeSetting: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
6
  /** 获取窗口信息 */
13
7
  export declare const getWindowInfo: typeof Taro.getWindowInfo;
14
8
  /** 获取设备设置 */
@@ -86,7 +86,7 @@ export const getAppBaseInfo = () => {
86
86
  /** 客户端基础库版本 */
87
87
  SDKVersion: '',
88
88
  /** 是否已打开调试。可通过右上角菜单或 [Taro.setEnableDebug](/docs/apis/base/debug/setEnableDebug) 打开调试。 */
89
- enableDebug: process.env.NODE_ENV === 'development',
89
+ enableDebug: process.env.NODE_ENV !== 'production',
90
90
  /** 当前小程序运行的宿主环境 */
91
91
  // host: { appId: '' },
92
92
  /** 微信设置的语言 */
@@ -1,6 +1,2 @@
1
- export declare const updateWeChatApp: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const getUpdateManager: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const updateWeChatApp: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,41 +1,17 @@
1
1
  import Taro from '@tarojs/api';
2
- export declare const onUnhandledRejection: () => Promise<{
3
- errMsg: string;
4
- }>;
5
- export declare const onThemeChange: () => Promise<{
6
- errMsg: string;
7
- }>;
8
- export declare const onPageNotFound: () => Promise<{
9
- errMsg: string;
10
- }>;
11
- export declare const onError: () => Promise<{
12
- errMsg: string;
13
- }>;
14
- export declare const onAudioInterruptionEnd: () => Promise<{
15
- errMsg: string;
16
- }>;
17
- export declare const onAudioInterruptionBegin: () => Promise<{
18
- errMsg: string;
19
- }>;
2
+ export declare const onUnhandledRejection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const onThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const onPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export declare const onError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ export declare const onAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ export declare const onAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
20
8
  export declare const onAppShow: typeof Taro.onAppShow;
21
9
  export declare const onAppHide: typeof Taro.onAppHide;
22
- export declare const offUnhandledRejection: () => Promise<{
23
- errMsg: string;
24
- }>;
25
- export declare const offThemeChange: () => Promise<{
26
- errMsg: string;
27
- }>;
28
- export declare const offPageNotFound: () => Promise<{
29
- errMsg: string;
30
- }>;
31
- export declare const offError: () => Promise<{
32
- errMsg: string;
33
- }>;
34
- export declare const offAudioInterruptionEnd: () => Promise<{
35
- errMsg: string;
36
- }>;
37
- export declare const offAudioInterruptionBegin: () => Promise<{
38
- errMsg: string;
39
- }>;
10
+ export declare const offUnhandledRejection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ export declare const offThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ export declare const offPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
+ export declare const offError: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
14
+ export declare const offAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15
+ export declare const offAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
40
16
  export declare const offAppShow: typeof Taro.offWindowResize;
41
17
  export declare const offAppHide: typeof Taro.offWindowResize;
@@ -197,6 +197,6 @@ export class CanvasContext {
197
197
  return radialGradient;
198
198
  }
199
199
  createLinearGradient(x0, y0, x1, y1) {
200
- return this.createLinearGradient(x0, y0, x1, y1);
200
+ return this.ctx.createLinearGradient(x0, y0, x1, y1);
201
201
  }
202
202
  }
@@ -1,7 +1,5 @@
1
1
  /** 创建离屏 canvas 实例 */
2
- export declare const createOffscreenCanvas: () => Promise<{
3
- errMsg: string;
4
- }>;
2
+ export declare const createOffscreenCanvas: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
3
  /** 创建 canvas 的绘图上下文 CanvasContext 对象 */
6
4
  export * from './createCanvasContext';
7
5
  /** 把当前画布指定区域的内容导出生成指定大小的图片 */
@@ -1,31 +1,13 @@
1
1
  import Taro from '@tarojs/api';
2
2
  export declare class cloud implements Taro.cloud {
3
3
  Cloud: new (options: Taro.cloud.IOptions) => Taro.Cloud;
4
- init: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- CloudID: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- callFunction: () => Promise<{
11
- errMsg: string;
12
- }>;
13
- uploadFile: () => Promise<{
14
- errMsg: string;
15
- }>;
16
- downloadFile: () => Promise<{
17
- errMsg: string;
18
- }>;
19
- getTempFileURL: () => Promise<{
20
- errMsg: string;
21
- }>;
22
- deleteFile: () => Promise<{
23
- errMsg: string;
24
- }>;
25
- database: () => Promise<{
26
- errMsg: string;
27
- }>;
28
- callContainer: () => Promise<{
29
- errMsg: string;
30
- }>;
4
+ init: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ CloudID: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ callFunction: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ uploadFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ downloadFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ getTempFileURL: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
+ deleteFile: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ database: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ callContainer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
31
13
  }
@@ -1,12 +1,4 @@
1
- export declare const reportMonitor: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const reportAnalytics: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const reportEvent: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const getExptInfoSync: () => Promise<{
11
- errMsg: string;
12
- }>;
1
+ export declare const reportMonitor: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const reportAnalytics: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const reportEvent: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const getExptInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,3 +1 @@
1
- export declare const checkIsOpenAccessibility: () => Promise<{
2
- errMsg: string;
3
- }>;
1
+ export declare const checkIsOpenAccessibility: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,5 +1,3 @@
1
1
  import Taro from '@tarojs/api';
2
- export declare const getBatteryInfoSync: () => Promise<{
3
- errMsg: string;
4
- }>;
2
+ export declare const getBatteryInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
3
  export declare const getBatteryInfo: typeof Taro.getBatteryInfo;
@@ -1,48 +1,16 @@
1
- export declare const writeBLECharacteristicValue: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const setBLEMTU: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const readBLECharacteristicValue: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const onBLEMTUChange: () => Promise<{
11
- errMsg: string;
12
- }>;
13
- export declare const onBLEConnectionStateChange: () => Promise<{
14
- errMsg: string;
15
- }>;
16
- export declare const onBLECharacteristicValueChange: () => Promise<{
17
- errMsg: string;
18
- }>;
19
- export declare const offBLEMTUChange: () => Promise<{
20
- errMsg: string;
21
- }>;
22
- export declare const offBLEConnectionStateChange: () => Promise<{
23
- errMsg: string;
24
- }>;
25
- export declare const offBLECharacteristicValueChange: () => Promise<{
26
- errMsg: string;
27
- }>;
28
- export declare const notifyBLECharacteristicValueChange: () => Promise<{
29
- errMsg: string;
30
- }>;
31
- export declare const getBLEMTU: () => Promise<{
32
- errMsg: string;
33
- }>;
34
- export declare const getBLEDeviceServices: () => Promise<{
35
- errMsg: string;
36
- }>;
37
- export declare const getBLEDeviceRSSI: () => Promise<{
38
- errMsg: string;
39
- }>;
40
- export declare const getBLEDeviceCharacteristics: () => Promise<{
41
- errMsg: string;
42
- }>;
43
- export declare const createBLEConnection: () => Promise<{
44
- errMsg: string;
45
- }>;
46
- export declare const closeBLEConnection: () => Promise<{
47
- errMsg: string;
48
- }>;
1
+ export declare const writeBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const setBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const readBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const onBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export declare const onBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ export declare const onBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ export declare const offBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ export declare const offBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ export declare const offBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
+ export declare const notifyBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ export declare const getBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ export declare const getBLEDeviceServices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
+ export declare const getBLEDeviceRSSI: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
14
+ export declare const getBLEDeviceCharacteristics: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
15
+ export declare const createBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
16
+ export declare const closeBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,9 +1,3 @@
1
- export declare const onBLEPeripheralConnectionStateChanged: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const offBLEPeripheralConnectionStateChanged: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const createBLEPeripheralServer: () => Promise<{
8
- errMsg: string;
9
- }>;
1
+ export declare const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,39 +1,13 @@
1
- export declare const stopBluetoothDevicesDiscovery: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const startBluetoothDevicesDiscovery: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const openBluetoothAdapter: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const onBluetoothDeviceFound: () => Promise<{
11
- errMsg: string;
12
- }>;
13
- export declare const onBluetoothAdapterStateChange: () => Promise<{
14
- errMsg: string;
15
- }>;
16
- export declare const offBluetoothDeviceFound: () => Promise<{
17
- errMsg: string;
18
- }>;
19
- export declare const offBluetoothAdapterStateChange: () => Promise<{
20
- errMsg: string;
21
- }>;
22
- export declare const makeBluetoothPair: () => Promise<{
23
- errMsg: string;
24
- }>;
25
- export declare const isBluetoothDevicePaired: () => Promise<{
26
- errMsg: string;
27
- }>;
28
- export declare const getConnectedBluetoothDevices: () => Promise<{
29
- errMsg: string;
30
- }>;
31
- export declare const getBluetoothDevices: () => Promise<{
32
- errMsg: string;
33
- }>;
34
- export declare const getBluetoothAdapterState: () => Promise<{
35
- errMsg: string;
36
- }>;
37
- export declare const closeBluetoothAdapter: () => Promise<{
38
- errMsg: string;
39
- }>;
1
+ export declare const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export declare const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ export declare const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ export declare const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
8
+ export declare const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
9
+ export declare const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
10
+ export declare const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
11
+ export declare const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
12
+ export declare const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
+ export declare const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,6 +1,2 @@
1
- export declare const addPhoneRepeatCalendar: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const addPhoneCalendar: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,6 +1,2 @@
1
- export declare const chooseContact: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const addPhoneContact: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,3 +1 @@
1
- export declare const getRandomValues: () => Promise<{
2
- errMsg: string;
3
- }>;
1
+ export declare const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,12 +1,4 @@
1
- export declare const stopGyroscope: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const startGyroscope: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const onGyroscopeChange: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const offGyroscopeChange: () => Promise<{
11
- errMsg: string;
12
- }>;
1
+ export declare const stopGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const startGyroscope: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const onGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const offGyroscopeChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,21 +1,7 @@
1
- export declare const stopBeaconDiscovery: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const startBeaconDiscovery: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const onBeaconUpdate: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const onBeaconServiceChange: () => Promise<{
11
- errMsg: string;
12
- }>;
13
- export declare const offBeaconUpdate: () => Promise<{
14
- errMsg: string;
15
- }>;
16
- export declare const offBeaconServiceChange: () => Promise<{
17
- errMsg: string;
18
- }>;
19
- export declare const getBeacons: () => Promise<{
20
- errMsg: string;
21
- }>;
1
+ export declare const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export declare const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ export declare const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ export declare const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,12 +1,4 @@
1
- export declare const onKeyboardHeightChange: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const offKeyboardHeightChange: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const hideKeyboard: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const getSelectedTextRange: () => Promise<{
11
- errMsg: string;
12
- }>;
1
+ export declare const onKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const offKeyboardHeightChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const hideKeyboard: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,6 +1,2 @@
1
- export declare const onMemoryWarning: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const offMemoryWarning: () => Promise<{
5
- errMsg: string;
6
- }>;
1
+ export declare const onMemoryWarning: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const offMemoryWarning: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -7,14 +7,8 @@ export declare const getNetworkType: typeof Taro.getNetworkType;
7
7
  * - 出现三次以上的丢包
8
8
  * > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
9
9
  */
10
- export declare const onNetworkWeakChange: () => Promise<{
11
- errMsg: string;
12
- }>;
10
+ export declare const onNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
13
11
  export declare const onNetworkStatusChange: typeof Taro.onNetworkStatusChange;
14
- export declare const offNetworkWeakChange: () => Promise<{
15
- errMsg: string;
16
- }>;
12
+ export declare const offNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
17
13
  export declare const offNetworkStatusChange: typeof Taro.offNetworkStatusChange;
18
- export declare const getLocalIPAddress: () => Promise<{
19
- errMsg: string;
20
- }>;
14
+ export declare const getLocalIPAddress: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,21 +1,7 @@
1
- export declare const stopHCE: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const startHCE: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const sendHCEMessage: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const onHCEMessage: () => Promise<{
11
- errMsg: string;
12
- }>;
13
- export declare const offHCEMessage: () => Promise<{
14
- errMsg: string;
15
- }>;
16
- export declare const getNFCAdapter: () => Promise<{
17
- errMsg: string;
18
- }>;
19
- export declare const getHCEState: () => Promise<{
20
- errMsg: string;
21
- }>;
1
+ export declare const stopHCE: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const startHCE: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const sendHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const onHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export declare const offHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ export declare const getNFCAdapter: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
7
+ export declare const getHCEState: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
@@ -1,18 +1,6 @@
1
- export declare const setVisualEffectOnCapture: () => Promise<{
2
- errMsg: string;
3
- }>;
4
- export declare const setScreenBrightness: () => Promise<{
5
- errMsg: string;
6
- }>;
7
- export declare const setKeepScreenOn: () => Promise<{
8
- errMsg: string;
9
- }>;
10
- export declare const onUserCaptureScreen: () => Promise<{
11
- errMsg: string;
12
- }>;
13
- export declare const offUserCaptureScreen: () => Promise<{
14
- errMsg: string;
15
- }>;
16
- export declare const getScreenBrightness: () => Promise<{
17
- errMsg: string;
18
- }>;
1
+ export declare const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
2
+ export declare const setScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
3
+ export declare const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
4
+ export declare const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
5
+ export declare const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
6
+ export declare const getScreenBrightness: (option?: {}, ...args: any[]) => Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;