@tarojs/taro 3.5.10 → 3.6.0-beta.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "3.5.10",
3
+ "version": "3.6.0-beta.0",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -21,8 +21,8 @@
21
21
  "author": "O2Team",
22
22
  "license": "MIT",
23
23
  "dependencies": {
24
- "@tarojs/api": "3.5.10",
25
- "@tarojs/runtime": "3.5.10"
24
+ "@tarojs/api": "3.6.0-beta.0",
25
+ "@tarojs/runtime": "3.6.0-beta.0"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "@types/react": {
@@ -6,7 +6,7 @@ declare module './index' {
6
6
  * 页面展示时的回调。
7
7
  * @supported global
8
8
  */
9
- useDidShow(callback: () => void): void
9
+ useDidShow(callback: (options?: getLaunchOptionsSync.LaunchOptions) => void): void
10
10
 
11
11
  /**
12
12
  * 页面隐藏时的回调。
@@ -87,7 +87,7 @@ declare module './index' {
87
87
  * 小程序有未处理的 Promise reject 时触发。也可以使用 Taro.onUnhandledRejection 绑定监听。
88
88
  * @supported weapp, alipay
89
89
  */
90
- useUnhandledRejection(callback: (error: { reason: Error, promise: Promise<Error> }) => void): void
90
+ useUnhandledRejection(callback: (error: { reason: Error, promise: Promise<Error> }) => void): void
91
91
 
92
92
  /**
93
93
  * 小程序要打开的页面不存在时触发的回调。
@@ -100,7 +100,7 @@ declare module './index' {
100
100
  * 页面加载完成时的回调。
101
101
  * @supported weapp, h5
102
102
  */
103
- useLoad(callback: () => void): void
103
+ useLoad<T extends {} = Record<string, any>>(callback: (param: T) => void): void
104
104
 
105
105
  /**
106
106
  * 页面卸载时的回调。