@tarojs/taro 3.5.0-beta.0 → 3.5.0-beta.1

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 (55) hide show
  1. package/index.js +3 -4
  2. package/package.json +4 -4
  3. package/types/api/base/debug.d.ts +1 -1
  4. package/types/api/base/index.d.ts +3 -3
  5. package/types/api/base/performance.d.ts +5 -5
  6. package/types/api/base/system.d.ts +2 -2
  7. package/types/api/base/update.d.ts +6 -6
  8. package/types/api/base/weapp/app-event.d.ts +10 -10
  9. package/types/api/base/weapp/life-cycle.d.ts +1 -1
  10. package/types/api/data-analysis/index.d.ts +1 -1
  11. package/types/api/device/accelerometer.d.ts +3 -3
  12. package/types/api/device/calendar.d.ts +1 -1
  13. package/types/api/device/clipboard.d.ts +2 -2
  14. package/types/api/device/compass.d.ts +3 -3
  15. package/types/api/device/gyroscope.d.ts +4 -4
  16. package/types/api/device/keyboard.d.ts +1 -1
  17. package/types/api/device/memory.d.ts +1 -1
  18. package/types/api/device/network.d.ts +2 -2
  19. package/types/api/device/phone.d.ts +1 -1
  20. package/types/api/device/scan.d.ts +1 -1
  21. package/types/api/device/screen.d.ts +5 -5
  22. package/types/api/device/vibrate.d.ts +2 -2
  23. package/types/api/device/wifi.d.ts +3 -3
  24. package/types/api/ext/index.d.ts +2 -2
  25. package/types/api/files/index.d.ts +32 -32
  26. package/types/api/framework/index.d.ts +1 -1
  27. package/types/api/location/index.d.ts +9 -9
  28. package/types/api/media/audio.d.ts +1 -1
  29. package/types/api/media/background-audio.d.ts +1 -1
  30. package/types/api/media/camera.d.ts +8 -8
  31. package/types/api/media/image.d.ts +5 -5
  32. package/types/api/media/map.d.ts +15 -15
  33. package/types/api/media/recorder.d.ts +9 -9
  34. package/types/api/media/video.d.ts +2 -2
  35. package/types/api/navigate/index.d.ts +2 -2
  36. package/types/api/network/download.d.ts +5 -5
  37. package/types/api/network/request.d.ts +3 -3
  38. package/types/api/network/upload.d.ts +5 -5
  39. package/types/api/network/websocket.d.ts +6 -6
  40. package/types/api/open-api/address.d.ts +1 -1
  41. package/types/api/open-api/authorize.d.ts +1 -1
  42. package/types/api/open-api/settings.d.ts +2 -2
  43. package/types/api/open-api/subscribe-message.d.ts +2 -2
  44. package/types/api/open-api/user-info.d.ts +2 -2
  45. package/types/api/route/index.d.ts +5 -5
  46. package/types/api/share/index.d.ts +2 -2
  47. package/types/api/storage/index.d.ts +10 -10
  48. package/types/api/ui/animation.d.ts +32 -32
  49. package/types/api/ui/interaction.d.ts +6 -6
  50. package/types/api/ui/menu.d.ts +1 -1
  51. package/types/api/ui/navigation-bar.d.ts +5 -5
  52. package/types/api/ui/pull-down-refresh.d.ts +2 -2
  53. package/types/api/ui/scroll.d.ts +4 -2
  54. package/types/api/ui/tab-bar.d.ts +8 -8
  55. package/types/api/wxml/index.d.ts +16 -16
@@ -105,7 +105,7 @@ declare module '../../index' {
105
105
  * **关于调试**
106
106
  * - 在开发者工具上调用此 API 并不会真实的跳转到另外的小程序,但是开发者工具会校验本次调用跳转是否成功。[详情](https://developers.weixin.qq.com/miniprogram/dev/devtools/different.html#跳转小程序调试支持)
107
107
  * - 开发者工具上支持被跳转的小程序处理接收参数的调试。[详情](https://developers.weixin.qq.com/miniprogram/dev/devtools/different.html#跳转小程序调试支持)
108
- * @supported weapp
108
+ * @supported weapp, tt
109
109
  * @example
110
110
  * ```tsx
111
111
  * Taro.navigateToMiniProgram({
@@ -127,7 +127,7 @@ declare module '../../index' {
127
127
  /** 返回到上一个小程序。只有在当前小程序是被其他小程序打开时可以调用成功
128
128
  *
129
129
  * 注意:**微信客户端 iOS 6.5.9,Android 6.5.10 及以上版本支持**
130
- * @supported weapp
130
+ * @supported weapp, tt
131
131
  * @example
132
132
  * ```tsx
133
133
  * Taro.navigateBackMiniProgram({
@@ -67,7 +67,7 @@ declare module '../../index' {
67
67
  }
68
68
 
69
69
  /** 一个可以监听下载进度变化事件,以及取消下载任务的对象
70
- * @supported weapp, swan, alipay, h5, rn
70
+ * @supported weapp, swan, alipay, h5, rn, tt
71
71
  * @example
72
72
  * ```tsx
73
73
  * const downloadTask = Taro.downloadFile({
@@ -91,12 +91,12 @@ declare module '../../index' {
91
91
  */
92
92
  interface DownloadTask {
93
93
  /** 中断下载任务
94
- * @supported weapp, h5, rn
94
+ * @supported weapp, h5, tt
95
95
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.abort.html
96
96
  */
97
97
  abort(): void
98
98
  /** 监听下载进度变化事件
99
- * @supported weapp, h5, rn
99
+ * @supported weapp, h5, tt
100
100
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.onProgressUpdate.html
101
101
  */
102
102
  onProgressUpdate(
@@ -104,7 +104,7 @@ declare module '../../index' {
104
104
  callback: DownloadTask.OnProgressUpdateCallback,
105
105
  ): void
106
106
  /** 取消监听下载进度变化事件
107
- * @supported weapp, h5, rn
107
+ * @supported weapp, h5, tt
108
108
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/download/DownloadTask.offProgressUpdate.html
109
109
  */
110
110
  offProgressUpdate(
@@ -133,7 +133,7 @@ declare module '../../index' {
133
133
  /** 下载文件资源到本地。客户端直接发起一个 HTTPS GET 请求,返回文件的本地临时路径,单次下载允许的最大文件为 50MB。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。
134
134
  *
135
135
  * 注意:请在服务端响应的 header 中指定合理的 `Content-Type` 字段,以保证客户端正确处理文件类型。
136
- * @supported weapp, h5, alipay, swan, rn
136
+ * @supported weapp, h5, alipay, swan, rn, tt
137
137
  * @example
138
138
  * ```tsx
139
139
  * Taro.downloadFile({
@@ -14,7 +14,7 @@ declare module '../../index' {
14
14
  header?: TaroGeneral.IAnyObject
15
15
  /** 超时时间,单位为毫秒
16
16
  * @default 2000
17
- * @supported weapp, h5
17
+ * @supported weapp, h5, tt
18
18
  */
19
19
  timeout?: number
20
20
  /** HTTP 请求方法
@@ -37,7 +37,7 @@ declare module '../../index' {
37
37
  enableQuic?: boolean
38
38
  /** 开启 cache
39
39
  * @default false
40
- * @supported weapp
40
+ * @supported weapp, tt
41
41
  */
42
42
  enableCache?: boolean
43
43
  /** 是否开启 HttpDNS 服务。如开启,需要同时填入 httpDNSServiceId 。 HttpDNS 用法详见 移动解析HttpDNS
@@ -254,7 +254,7 @@ declare module '../../index' {
254
254
  */
255
255
  interface RequestTask<T> extends Promise<request.SuccessCallbackResult<T>> {
256
256
  /** 中断请求任务
257
- * @supported weapp
257
+ * @supported weapp, tt
258
258
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/request/RequestTask.abort.html
259
259
  */
260
260
  abort(): void
@@ -76,7 +76,7 @@ declare module '../../index' {
76
76
  }
77
77
 
78
78
  /** 一个可以监听上传进度变化事件,以及取消上传任务的对象
79
- * @supported weapp, swan, alipay, h5, rn
79
+ * @supported weapp, swan, alipay, h5, rn, tt
80
80
  * @example
81
81
  * ```tsx
82
82
  * const uploadTask = Taro.uploadFile({
@@ -104,12 +104,12 @@ declare module '../../index' {
104
104
  */
105
105
  interface UploadTask {
106
106
  /** 中断上传任务
107
- * @supported weapp, h5
107
+ * @supported weapp, h5, tt
108
108
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.abort.html
109
109
  */
110
110
  abort(): void
111
111
  /** 监听上传进度变化事件
112
- * @supported weapp, h5
112
+ * @supported weapp, h5, tt
113
113
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.onProgressUpdate.html
114
114
  */
115
115
  onProgressUpdate(
@@ -117,7 +117,7 @@ declare module '../../index' {
117
117
  callback: UploadTask.OnProgressUpdateCallback,
118
118
  ): void
119
119
  /** 取消监听上传进度变化事件
120
- * @supported weapp, h5
120
+ * @supported weapp, h5, tt
121
121
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/UploadTask.offProgressUpdate.html
122
122
  */
123
123
  offProgressUpdate(
@@ -144,7 +144,7 @@ declare module '../../index' {
144
144
 
145
145
  interface TaroStatic {
146
146
  /** 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 `content-type` 为 `multipart/form-data`。使用前请注意阅读[相关说明](https://developers.weixin.qq.com/miniprogram/dev/framework/ability/network.html)。
147
- * @supported weapp, swan, alipay, h5, rn
147
+ * @supported weapp, swan, alipay, h5, rn, tt
148
148
  * @example
149
149
  * ```tsx
150
150
  * Taro.chooseImage({
@@ -143,17 +143,17 @@ declare module '../../index' {
143
143
  */
144
144
  interface SocketTask {
145
145
  /** 通过 WebSocket 连接发送数据
146
- * @supported weapp, h5, rn, alipay, swan
146
+ * @supported weapp, h5, rn, alipay, swan, tt
147
147
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.send.html
148
148
  */
149
149
  send(option: SocketTask.SendOption): void
150
150
  /** 关闭 WebSocket 连接
151
- * @supported weapp, h5, rn, alipay, swan
151
+ * @supported weapp, h5, rn, alipay, swan, tt
152
152
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.close.html
153
153
  */
154
154
  close(option: SocketTask.CloseOption): void
155
155
  /** 监听 WebSocket 连接打开事件
156
- * @supported weapp, h5, rn, alipay, swan
156
+ * @supported weapp, h5, rn, alipay, swan, tt
157
157
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onOpen.html
158
158
  */
159
159
  onOpen(
@@ -161,7 +161,7 @@ declare module '../../index' {
161
161
  callback: SocketTask.OnOpenCallback
162
162
  ): void
163
163
  /** 监听 WebSocket 连接关闭事件
164
- * @supported weapp, h5, rn, alipay, swan
164
+ * @supported weapp, h5, rn, alipay, swan, tt
165
165
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onClose.html
166
166
  */
167
167
  onClose(
@@ -169,7 +169,7 @@ declare module '../../index' {
169
169
  callback: SocketTask.OnCloseCallback
170
170
  ): void
171
171
  /** 监听 WebSocket 错误事件
172
- * @supported weapp, h5, rn, alipay, swan
172
+ * @supported weapp, h5, rn, alipay, swan, tt
173
173
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onError.html
174
174
  */
175
175
  onError(
@@ -177,7 +177,7 @@ declare module '../../index' {
177
177
  callback: SocketTask.OnErrorCallback
178
178
  ): void
179
179
  /** 监听 WebSocket 接受到服务器的消息事件
180
- * @supported weapp, h5, rn, alipay, swan
180
+ * @supported weapp, h5, rn, alipay, swan, tt
181
181
  * @see https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/SocketTask.onMessage.html
182
182
  */
183
183
  onMessage<T = any>(
@@ -35,7 +35,7 @@ declare module '../../index' {
35
35
 
36
36
  interface TaroStatic {
37
37
  /** 获取用户收货地址。调起用户编辑收货地址原生界面,并在编辑完成后返回用户选择的地址。
38
- * @supported weapp
38
+ * @supported weapp, tt
39
39
  * @example
40
40
  * ```tsx
41
41
  * Taro.chooseAddress({
@@ -55,7 +55,7 @@ declare module '../../index' {
55
55
  authorizeForMiniProgram(option: authorizeForMiniProgram.Option): Promise<TaroGeneral.CallbackResult>
56
56
 
57
57
  /** 提前向用户发起授权请求。调用后会立刻弹窗询问用户是否同意授权小程序使用某项功能或获取用户的某些数据,但不会实际调用对应接口。如果用户之前已经同意授权,则不会出现弹窗,直接返回成功。更多用法详见 [用户授权](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html)。
58
- * @supported weapp
58
+ * @supported weapp, rn, tt
59
59
  * @example
60
60
  * ```tsx
61
61
  * // 可以通过 Taro.getSetting 先查询一下用户是否授权了 "scope.record" 这个 scope
@@ -135,7 +135,7 @@ declare module '../../index' {
135
135
  /** 调起客户端小程序设置界面,返回用户设置的操作结果。**设置界面只会出现小程序已经向用户请求过的[权限](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html)**。
136
136
  *
137
137
  * 注意:[2.3.0](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 版本开始,用户发生点击行为后,才可以跳转打开设置页,管理授权信息。[详情](https://developers.weixin.qq.com/community/develop/doc/000cea2305cc5047af5733de751008)
138
- * @supported weapp
138
+ * @supported weapp, rn, tt
139
139
  * @example
140
140
  * ```tsx
141
141
  * Taro.openSetting({
@@ -153,7 +153,7 @@ declare module '../../index' {
153
153
  openSetting(option?: openSetting.Option): Promise<openSetting.SuccessCallbackResult>
154
154
 
155
155
  /** 获取用户的当前设置。**返回值中只会出现小程序已经向用户请求过的[权限](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html)**。
156
- * @supported weapp
156
+ * @supported weapp, rn, tt
157
157
  * @example
158
158
  * ```tsx
159
159
  * Taro.getSetting({
@@ -118,7 +118,7 @@ declare module '../../index' {
118
118
  /** 请求订阅消息
119
119
  *
120
120
  * 注意:[2.8.2](https://developers.weixin.qq.com/miniprogram/dev/framework/compatibility.html) 版本开始,用户发生点击行为或者发起支付回调后,才可以调起订阅消息界面。
121
- * @supported weapp
121
+ * @supported weapp, tt
122
122
  * @example
123
123
  * ```tsx
124
124
  * Taro.requestSubscribeMessage({
@@ -133,7 +133,7 @@ declare module '../../index' {
133
133
  ): Promise<requestSubscribeMessage.SuccessCallbackResult | requestSubscribeMessage.FailCallbackResult>
134
134
 
135
135
  /** 订阅设备消息接口,调用后弹出授权框,用户同意后会允许开发者给用户发送订阅模版消息。当用户点击“允许”按钮时,模板消息会被添加到用户的小程序设置页,通过 wx.getSetting 接口可获取用户对相关模板消息的订阅状态。
136
- * @supported weapp
136
+ * @supported weapp, tt
137
137
  * @example
138
138
  * ```tsx
139
139
  * Taro.requestSubscribeDeviceMessage({
@@ -102,7 +102,7 @@ declare module '../../index' {
102
102
  *
103
103
  * **接口调整说明**
104
104
  * 在用户未授权过的情况下调用此接口,将不再出现授权弹窗,会直接进入 fail 回调(详见[《公告》](https://developers.weixin.qq.com/community/develop/doc/0000a26e1aca6012e896a517556c01))。在用户已授权的情况下调用此接口,可成功获取用户信息。
105
- * @supported weapp
105
+ * @supported weapp, tt
106
106
  * @example
107
107
  * ```tsx
108
108
  * // 必须是在用户已经授权的情况下调用
@@ -153,7 +153,7 @@ declare module '../../index' {
153
153
  * 开发者每次通过该接口获取用户个人信息均需用户确认,请开发者妥善保管用户快速填写的头像昵称,避免重复弹窗。
154
154
  *
155
155
  * [微信端调整背景和说明,请参考文档](https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801)
156
- * @supported weapp
156
+ * @supported weapp, tt
157
157
  * @example
158
158
  * 推荐使用 Taro.getUserProfile 获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认
159
159
  *
@@ -117,7 +117,7 @@ declare module '../../index' {
117
117
 
118
118
  interface TaroStatic {
119
119
  /** 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
120
- * @supported weapp, h5, rn
120
+ * @supported weapp, h5, rn, tt
121
121
  * @example
122
122
  * ```json
123
123
  * {
@@ -143,7 +143,7 @@ declare module '../../index' {
143
143
  switchTab(option: switchTab.Option): Promise<TaroGeneral.CallbackResult>
144
144
 
145
145
  /** 关闭所有页面,打开到应用内的某个页面
146
- * @supported weapp, h5, rn
146
+ * @supported weapp, h5, rn, tt
147
147
  * @example
148
148
  * ```tsx
149
149
  * Taro.reLaunch({
@@ -155,7 +155,7 @@ declare module '../../index' {
155
155
  reLaunch(option: reLaunch.Option): Promise<TaroGeneral.CallbackResult>
156
156
 
157
157
  /** 关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面。
158
- * @supported weapp, h5, rn
158
+ * @supported weapp, h5, rn, tt
159
159
  * @example
160
160
  * ```tsx
161
161
  * Taro.redirectTo({
@@ -167,7 +167,7 @@ declare module '../../index' {
167
167
  redirectTo(option: redirectTo.Option): Promise<TaroGeneral.CallbackResult>
168
168
 
169
169
  /** 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 Taro.navigateBack 可以返回到原页面。小程序中页面栈最多十层。
170
- * @supported weapp, h5, rn
170
+ * @supported weapp, h5, rn, tt
171
171
  * @example
172
172
  * ```tsx
173
173
  * Taro.navigateTo({
@@ -193,7 +193,7 @@ declare module '../../index' {
193
193
  navigateTo(option: navigateTo.Option): Promise<TaroGeneral.CallbackResult>
194
194
 
195
195
  /** 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages 获取当前的页面栈,决定需要返回几层。
196
- * @supported weapp, h5, rn
196
+ * @supported weapp, h5, rn, tt
197
197
  * @example
198
198
  * ```tsx
199
199
  * // 注意:调用 navigateTo 跳转时,调用该方法的页面会被加入堆栈,而 redirectTo 方法则不会。见下方示例代码
@@ -181,7 +181,7 @@ declare module '../../index' {
181
181
  updateShareMenu(option: updateShareMenu.Option): Promise<TaroGeneral.CallbackResult>
182
182
 
183
183
  /** 显示当前页面的转发按钮
184
- * @supported weapp, qq
184
+ * @supported weapp, qq, tt
185
185
  * @example
186
186
  * ```tsx
187
187
  * Taro.showShareMenu({
@@ -273,7 +273,7 @@ declare module '../../index' {
273
273
  ): void
274
274
 
275
275
  /** 隐藏当前页面的转发按钮
276
- * @supported weapp
276
+ * @supported weapp, tt
277
277
  * @example
278
278
  * ```tsx
279
279
  * Taro.hideShareMenu()
@@ -104,7 +104,7 @@ declare module '../../index' {
104
104
 
105
105
  interface TaroStatic {
106
106
  /** Taro.setStorage 的同步版本
107
- * @supported weapp, h5
107
+ * @supported weapp, h5, tt
108
108
  * @example
109
109
  * ```tsx
110
110
  * Taro.setStorage({
@@ -128,7 +128,7 @@ declare module '../../index' {
128
128
  ): void
129
129
 
130
130
  /** 将数据存储在本地缓存中指定的 key 中。会覆盖掉原来该 key 对应的内容。除非用户主动删除或因存储空间原因被系统清理,否则数据都一直可用。单个 key 允许存储的最大数据长度为 1MB,所有数据存储上限为 10MB。
131
- * @supported weapp, h5, rn
131
+ * @supported weapp, h5, rn, tt
132
132
  * @example
133
133
  * ```tsx
134
134
  * Taro.setStorage({
@@ -155,7 +155,7 @@ declare module '../../index' {
155
155
  ): void
156
156
 
157
157
  /** Taro.removeStorage 的同步版本
158
- * @supported weapp, h5
158
+ * @supported weapp, h5, tt
159
159
  * @example
160
160
  * ```tsx
161
161
  * try {
@@ -172,7 +172,7 @@ declare module '../../index' {
172
172
  ): void
173
173
 
174
174
  /** 从本地缓存中移除指定 key
175
- * @supported weapp, h5, rn
175
+ * @supported weapp, h5, rn, tt
176
176
  * @example
177
177
  * ```tsx
178
178
  * Taro.removeStorage({
@@ -187,7 +187,7 @@ declare module '../../index' {
187
187
  removeStorage(option: removeStorage.Option): Promise<TaroGeneral.CallbackResult>
188
188
 
189
189
  /** Taro.getStorage 的同步版本
190
- * @supported weapp, h5
190
+ * @supported weapp, h5, tt
191
191
  * @example
192
192
  * ```tsx
193
193
  * try {
@@ -207,7 +207,7 @@ declare module '../../index' {
207
207
  ): T
208
208
 
209
209
  /** Taro.getStorageInfo 的同步版本
210
- * @supported weapp, h5
210
+ * @supported weapp, h5, rn, tt
211
211
  * @example
212
212
  * ```tsx
213
213
  * try {
@@ -224,7 +224,7 @@ declare module '../../index' {
224
224
  getStorageInfoSync(): getStorageInfoSync.Option
225
225
 
226
226
  /** 异步获取当前storage的相关信息
227
- * @supported weapp, h5, rn
227
+ * @supported weapp, h5, rn, tt
228
228
  * @example
229
229
  * ```tsx
230
230
  * Taro.getStorageInfo({
@@ -240,7 +240,7 @@ declare module '../../index' {
240
240
  getStorageInfo(option?: getStorageInfo.Option): Promise<TaroGeneral.CallbackResult>
241
241
 
242
242
  /** 从本地缓存中异步获取指定 key 的内容
243
- * @supported weapp, h5, rn
243
+ * @supported weapp, h5, rn, tt
244
244
  * @example
245
245
  * ```tsx
246
246
  * Taro.getStorage({
@@ -264,7 +264,7 @@ declare module '../../index' {
264
264
  ): void
265
265
 
266
266
  /** Taro.clearStorage 的同步版本
267
- * @supported weapp, h5
267
+ * @supported weapp, h5, tt
268
268
  * @example
269
269
  * ```tsx
270
270
  * try {
@@ -278,7 +278,7 @@ declare module '../../index' {
278
278
  clearStorageSync(): void
279
279
 
280
280
  /** 清理本地数据缓存
281
- * @supported weapp, h5, rn
281
+ * @supported weapp, h5, rn, tt
282
282
  * @example
283
283
  * ```tsx
284
284
  * Taro.clearStorage()