@tarojs/taro 3.5.0-beta.7 → 3.5.0-beta.8
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.0-beta.
|
|
3
|
+
"version": "3.5.0-beta.8",
|
|
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.0-beta.
|
|
25
|
-
"@tarojs/runtime": "3.5.0-beta.
|
|
24
|
+
"@tarojs/api": "3.5.0-beta.8",
|
|
25
|
+
"@tarojs/runtime": "3.5.0-beta.8"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"@types/react": {
|
|
@@ -3,10 +3,11 @@ import Taro from '../../index'
|
|
|
3
3
|
declare module '../../index' {
|
|
4
4
|
/** 注册小程序中的一个页面。接受一个 `Object` 类型参数,其指定页面的初始数据、生命周期回调、事件处理函数等。 */
|
|
5
5
|
interface Page {
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
6
|
+
/** 当前页面的路径
|
|
7
|
+
* @note 推荐使用 Taro.getCurrentInstance().router?.path 方法
|
|
8
8
|
*/
|
|
9
|
-
route
|
|
9
|
+
route?: string
|
|
10
|
+
__route__?: string
|
|
10
11
|
/** @ignore */
|
|
11
12
|
[k: string]: any
|
|
12
13
|
}
|
|
@@ -26,6 +26,26 @@ declare module '../../index' {
|
|
|
26
26
|
tempFilePath: string
|
|
27
27
|
/** 调用结果 */
|
|
28
28
|
errMsg: string
|
|
29
|
+
/**
|
|
30
|
+
* 开发者服务器返回的 HTTP Response Header
|
|
31
|
+
* @supported weapp
|
|
32
|
+
* @weapp 非官方文档标注属性
|
|
33
|
+
*/
|
|
34
|
+
header?: TaroGeneral.IAnyObject
|
|
35
|
+
/**
|
|
36
|
+
* 数据长度,单位 Byte
|
|
37
|
+
* @supported weapp
|
|
38
|
+
* @weapp 非官方文档标注属性
|
|
39
|
+
*/
|
|
40
|
+
dataLength?: number
|
|
41
|
+
/**
|
|
42
|
+
* cookies
|
|
43
|
+
* @supported weapp
|
|
44
|
+
* @weapp 非官方文档标注属性
|
|
45
|
+
*/
|
|
46
|
+
cookies?: string[]
|
|
47
|
+
/** 网络请求过程中一些调试信息 */
|
|
48
|
+
profile?: TaroGeneral.IAnyObject
|
|
29
49
|
}
|
|
30
50
|
}
|
|
31
51
|
|
|
@@ -59,10 +79,9 @@ declare module '../../index' {
|
|
|
59
79
|
totalBytesWritten: number
|
|
60
80
|
}
|
|
61
81
|
|
|
62
|
-
type DownloadTaskPromise = Promise<
|
|
82
|
+
type DownloadTaskPromise = Promise<downloadFile.FileSuccessCallbackResult> & DownloadTask & {
|
|
63
83
|
headersReceive: DownloadTask['onHeadersReceived'],
|
|
64
|
-
progress: DownloadTask['onProgressUpdate']
|
|
65
|
-
abort: DownloadTask['abort']
|
|
84
|
+
progress: DownloadTask['onProgressUpdate']
|
|
66
85
|
}
|
|
67
86
|
}
|
|
68
87
|
|
|
@@ -35,6 +35,18 @@ declare module '../../index' {
|
|
|
35
35
|
statusCode: number
|
|
36
36
|
/** 调用结果 */
|
|
37
37
|
errMsg: string
|
|
38
|
+
/**
|
|
39
|
+
* 开发者服务器返回的 HTTP Response Header
|
|
40
|
+
* @supported weapp
|
|
41
|
+
* @weapp 非官方文档标注属性
|
|
42
|
+
*/
|
|
43
|
+
header?: TaroGeneral.IAnyObject
|
|
44
|
+
/**
|
|
45
|
+
* cookies
|
|
46
|
+
* @supported weapp
|
|
47
|
+
* @weapp 非官方文档标注属性
|
|
48
|
+
*/
|
|
49
|
+
cookies?: string[]
|
|
38
50
|
}
|
|
39
51
|
}
|
|
40
52
|
|
|
@@ -68,10 +80,9 @@ declare module '../../index' {
|
|
|
68
80
|
totalBytesSent: number
|
|
69
81
|
}
|
|
70
82
|
|
|
71
|
-
type UploadTaskPromise = Promise<
|
|
83
|
+
type UploadTaskPromise = Promise<uploadFile.SuccessCallbackResult> & UploadTask & {
|
|
72
84
|
headersReceive: UploadTask['onHeadersReceived'],
|
|
73
|
-
progress: UploadTask['onProgressUpdate']
|
|
74
|
-
abort: UploadTask['abort']
|
|
85
|
+
progress: UploadTask['onProgressUpdate']
|
|
75
86
|
}
|
|
76
87
|
}
|
|
77
88
|
|
package/types/compile.d.ts
CHANGED