@dcloudio/uni-app-x 0.4.5 → 0.4.6
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/.env +1 -1
- package/package.json +1 -1
- package/tsconfig.json +5 -0
- package/types/app.d.ts +986 -0
- package/types/common.d.ts +7 -0
- package/types/index.d.ts +3 -0
- package/types/native/AsyncApiResult.d.ts +1 -0
- package/types/native/CSSStyleDeclaration.d.ts +20 -0
- package/types/native/CustomEvent.d.ts +3 -0
- package/types/native/DOMRect.d.ts +56 -0
- package/types/native/DrawableContext.d.ts +102 -11
- package/types/native/Event.d.ts +25 -10
- package/types/native/IApp.d.ts +1 -0
- package/types/native/IDocument.d.ts +1 -0
- package/types/native/INode.d.ts +136 -5
- package/types/native/IPage.d.ts +1 -0
- package/types/native/IPageManager.d.ts +1 -0
- package/types/native/ITabsNode.d.ts +1 -0
- package/types/native/IWebViewNode.d.ts +28 -0
- package/types/native/ImageErrorEvent.d.ts +13 -0
- package/types/native/ImageLoadEvent.d.ts +17 -0
- package/types/native/MouseEvent.d.ts +44 -19
- package/types/native/NodeData.d.ts +1 -0
- package/types/native/PageEvent.d.ts +1 -0
- package/types/native/PageScrollEvent.d.ts +3 -0
- package/types/native/ResizeEvent.d.ts +26 -6
- package/types/native/RichTextItemClickEvent.d.ts +21 -0
- package/types/native/ScrollEvent.d.ts +27 -9
- package/types/native/SourceError.d.ts +38 -0
- package/types/native/TabTapEvent.d.ts +10 -2
- package/types/native/TouchEvent.d.ts +37 -10
- package/types/native/UTSError.d.ts +5 -2
- package/types/native/UTSPromise.d.ts +74 -0
- package/types/native/UniAggregateError.d.ts +17 -0
- package/types/native/UniAppManager.d.ts +1 -0
- package/types/native/UniError.d.ts +54 -5
- package/types/native/WebViewErrorEvent.d.ts +13 -0
- package/types/native/WebViewLoadedEvent.d.ts +8 -0
- package/types/native/WebViewLoadingEvent.d.ts +8 -0
- package/types/native/WebViewMessageEvent.d.ts +13 -0
- package/types/native/index.d.ts +15 -1
- package/types/page.d.ts +1729 -0
- package/types/shims-vue.d.ts +12 -0
- package/types/uni/core/lib/performance/index.d.ts +21 -0
- package/types/uni/core/lib/performance/interface.d.ts +152 -0
- package/types/uni/core/lib/ui/create-selector-query/index.d.ts +4 -0
- package/types/uni/ext/index.d.ts +0 -1
- package/types/uni/ext/lib/uni-audio/utssdk/index.d.ts +4 -0
- package/types/uni/ext/lib/uni-exit/utssdk/interface.d.ts +4 -4
- package/types/uni/ext/lib/uni-file-manager/utssdk/index.d.ts +2 -0
- package/types/uni/ext/lib/uni-file-manager/utssdk/interface.d.ts +6 -6
- package/types/uni/ext/lib/uni-getLocation-system/utssdk/interface.d.ts +39 -17
- package/types/uni/ext/lib/uni-getNetworkType/utssdk/interface.d.ts +3 -10
- package/types/uni/ext/lib/uni-getRecorderManager/utssdk/index.d.ts +2 -0
- package/types/uni/ext/lib/uni-getSystemInfo/utssdk/interface.d.ts +3 -10
- package/types/uni/ext/lib/uni-media/utssdk/interface.d.ts +55 -55
- package/types/uni/ext/lib/uni-network/utssdk/app-ios/index.d.ts +67 -0
- package/types/uni/ext/lib/uni-network/utssdk/app-ios/interface.d.ts +530 -0
- package/types/uni/ext/lib/uni-network/utssdk/index.d.ts +10 -4
- package/types/uni/ext/lib/uni-network/utssdk/interface.d.ts +37 -77
- package/types/uni/ext/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +3 -3
- package/types/uni/ext/lib/uni-prompt/utssdk/index.d.ts +0 -8
- package/types/uni/ext/lib/uni-prompt/utssdk/interface.d.ts +35 -112
- package/types/uni/ext/lib/uni-storage/utssdk/interface.d.ts +12 -12
- package/types/uni/ext/lib/uni-websocket/utssdk/index.d.ts +2 -0
- package/types/uni/ext/lib/uni-websocket/utssdk/interface.d.ts +11 -18
- package/types/uni-cloud/index.d.ts +333 -274
- package/types/vue/index.d.ts +1 -1
- package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/index.d.ts +0 -15
- package/types/uni/ext/lib/uni-getLocation-tencent/utssdk/interface.d.ts +0 -93
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GetPerformance as GetPerformanceOrigin,
|
|
3
|
+
PerformanceObserverCallback as PerformanceObserverCallbackOrigin,
|
|
4
|
+
PerformanceEntry as PerformanceEntryOrigin,
|
|
5
|
+
PerformanceObserverOptions as PerformanceObserverOptionsOrigin,
|
|
6
|
+
PerformanceObserver as PerformanceObserverOrigin,
|
|
7
|
+
PerformanceObserverEntryList as PerformanceObserverEntryListOrigin,
|
|
8
|
+
Performance as PerformanceOrigin,
|
|
9
|
+
Uni as UniOrigin
|
|
10
|
+
} from './interface'
|
|
11
|
+
|
|
12
|
+
declare global {
|
|
13
|
+
type GetPerformance = GetPerformanceOrigin
|
|
14
|
+
type PerformanceObserverCallback = PerformanceObserverCallbackOrigin
|
|
15
|
+
type PerformanceEntry = PerformanceEntryOrigin
|
|
16
|
+
type PerformanceObserverOptions = PerformanceObserverOptionsOrigin
|
|
17
|
+
type PerformanceObserver = PerformanceObserverOrigin
|
|
18
|
+
type PerformanceObserverEntryList = PerformanceObserverEntryListOrigin
|
|
19
|
+
type Performance = PerformanceOrigin
|
|
20
|
+
interface Uni extends UniOrigin { }
|
|
21
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export type GetPerformance = () => Performance
|
|
2
|
+
|
|
3
|
+
export type PerformanceObserverCallback = (
|
|
4
|
+
entries: PerformanceObserverEntryList
|
|
5
|
+
) => void
|
|
6
|
+
|
|
7
|
+
export type PerformanceEntry = {
|
|
8
|
+
/**
|
|
9
|
+
* 指标类型
|
|
10
|
+
* @type string
|
|
11
|
+
*/
|
|
12
|
+
entryType: string
|
|
13
|
+
/**
|
|
14
|
+
* 指标名称
|
|
15
|
+
* @type string
|
|
16
|
+
*/
|
|
17
|
+
name: string
|
|
18
|
+
/**
|
|
19
|
+
* 耗时 ms。仅对于表示阶段的指标有效。
|
|
20
|
+
* @type number
|
|
21
|
+
*/
|
|
22
|
+
duration: number
|
|
23
|
+
/**
|
|
24
|
+
* 开始时间,不同指标的具体含义会有差异。
|
|
25
|
+
* @type number
|
|
26
|
+
*/
|
|
27
|
+
startTime: number
|
|
28
|
+
/**
|
|
29
|
+
* 页面路径。仅 render 和 navigation 类型指标有效。
|
|
30
|
+
* @type string
|
|
31
|
+
*/
|
|
32
|
+
path: string | null
|
|
33
|
+
/**
|
|
34
|
+
* 页面跳转来源页面路径。仅 route 指标有效。
|
|
35
|
+
* @type string
|
|
36
|
+
*/
|
|
37
|
+
referrerPath: string | null
|
|
38
|
+
/**
|
|
39
|
+
* path 对应页面实例 Id(随机生成,不保证递增)。仅 render/navigation 指标有效。
|
|
40
|
+
* @type number
|
|
41
|
+
*/
|
|
42
|
+
pageId: number | null
|
|
43
|
+
/**
|
|
44
|
+
* referrerPath对应页面实例 Id(随机生成,不保证递增)。仅 route 指标有效。
|
|
45
|
+
* @type number
|
|
46
|
+
*/
|
|
47
|
+
referrerPageId: number | null
|
|
48
|
+
/**
|
|
49
|
+
* 路由真正响应开始时间。仅 navigation 类型指标有效。
|
|
50
|
+
* @type number
|
|
51
|
+
*/
|
|
52
|
+
navigationStart: number | null
|
|
53
|
+
/**
|
|
54
|
+
* 路由详细类型,与路由方法对应。仅 navigation 类型指标有效。
|
|
55
|
+
* @type string
|
|
56
|
+
*/
|
|
57
|
+
navigationType: string | null
|
|
58
|
+
/**
|
|
59
|
+
* 渲染层代码注入完成时间。仅 firstRender 指标有效。
|
|
60
|
+
* @type number
|
|
61
|
+
*/
|
|
62
|
+
viewLayerReadyTime: number | null
|
|
63
|
+
/**
|
|
64
|
+
* 首次渲染参数从逻辑层发出的时间。仅 firstRender 指标有效。
|
|
65
|
+
* @type number
|
|
66
|
+
*/
|
|
67
|
+
initDataSendTime: number | null
|
|
68
|
+
/**
|
|
69
|
+
* 首次渲染参数在渲染层收到的时间。仅 firstRender 指标有效。
|
|
70
|
+
* @type number
|
|
71
|
+
*/
|
|
72
|
+
initDataRecvTime: number | null
|
|
73
|
+
/**
|
|
74
|
+
* 渲染层代码注入完成时间。仅 firstRender 指标有效。
|
|
75
|
+
* @type number
|
|
76
|
+
*/
|
|
77
|
+
viewLayerRenderStartTime: number | null
|
|
78
|
+
/**
|
|
79
|
+
* 渲染层执行渲染结束时间。仅 firstRender 指标有效。
|
|
80
|
+
* @type number
|
|
81
|
+
*/
|
|
82
|
+
viewLayerRenderEndTime: number | null
|
|
83
|
+
/**
|
|
84
|
+
* 资源路径。仅 resourceTiming 指标有效。
|
|
85
|
+
* @type string
|
|
86
|
+
*/
|
|
87
|
+
uri: string | null
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export type PerformanceObserverOptions = {
|
|
91
|
+
buffered?: boolean
|
|
92
|
+
entryTypes?: string[]
|
|
93
|
+
type?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface PerformanceObserver {
|
|
97
|
+
/**
|
|
98
|
+
* 开始监听
|
|
99
|
+
*/
|
|
100
|
+
observe(options: PerformanceObserverOptions): void
|
|
101
|
+
/**
|
|
102
|
+
* 停止监听
|
|
103
|
+
*/
|
|
104
|
+
disconnect(): void
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface PerformanceObserverEntryList {
|
|
108
|
+
/**
|
|
109
|
+
* 该方法返回当前列表中的所有性能数据
|
|
110
|
+
*/
|
|
111
|
+
getEntries(): PerformanceEntry[]
|
|
112
|
+
/**
|
|
113
|
+
* 获取当前列表中所有类型为 [entryType] 的性能数据
|
|
114
|
+
*/
|
|
115
|
+
getEntriesByType(entryType: string): PerformanceEntry[]
|
|
116
|
+
/**
|
|
117
|
+
* 获取当前列表中所有名称为 [name] 且类型为 [entryType] 的性能数据
|
|
118
|
+
*/
|
|
119
|
+
getEntriesByName(name: string, entryType: string): PerformanceEntry[]
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface Performance {
|
|
123
|
+
/**
|
|
124
|
+
* 创建全局性能事件监听器
|
|
125
|
+
*/
|
|
126
|
+
createObserver(callback: PerformanceObserverCallback): PerformanceObserver
|
|
127
|
+
/**
|
|
128
|
+
* 该方法返回当前缓冲区中的所有性能数据
|
|
129
|
+
*/
|
|
130
|
+
getEntries(): PerformanceEntry[]
|
|
131
|
+
/**
|
|
132
|
+
* 获取当前缓冲区中所有类型为 [entryType] 的性能数据
|
|
133
|
+
*/
|
|
134
|
+
getEntriesByType(entryType: string): PerformanceEntry[]
|
|
135
|
+
/**
|
|
136
|
+
* 获取当前缓冲区中所有名称为 [name] 且类型为 [entryType] 的性能数据
|
|
137
|
+
*/
|
|
138
|
+
getEntriesByName(name: string, entryType: string): PerformanceEntry[]
|
|
139
|
+
/**
|
|
140
|
+
* 设置缓冲区大小,默认缓冲 30 条性能数据
|
|
141
|
+
*/
|
|
142
|
+
setBufferSize(size: number): void
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface Uni {
|
|
146
|
+
/**
|
|
147
|
+
* 返回一个Performance对象实例
|
|
148
|
+
*
|
|
149
|
+
* @tutorial http://uniapp.dcloud.io/api/getPerformance
|
|
150
|
+
*/
|
|
151
|
+
getPerformance: Performance
|
|
152
|
+
}
|
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
SelectorQueryNodeInfoCallback as SelectorQueryNodeInfoCallbackOrigin,
|
|
4
4
|
NodeInfo as NodeInfoOrigin,
|
|
5
5
|
NodeField as NodeFieldOrigin,
|
|
6
|
+
NodesRef as NodesRefOrigin,
|
|
7
|
+
SelectorQuery as SelectorQueryOrigin,
|
|
6
8
|
Uni as UniOrigin
|
|
7
9
|
} from './interface'
|
|
8
10
|
|
|
@@ -11,5 +13,7 @@ declare global {
|
|
|
11
13
|
type SelectorQueryNodeInfoCallback = SelectorQueryNodeInfoCallbackOrigin
|
|
12
14
|
type NodeInfo = NodeInfoOrigin
|
|
13
15
|
type NodeField = NodeFieldOrigin
|
|
16
|
+
type NodesRef = NodesRefOrigin
|
|
17
|
+
type SelectorQuery = SelectorQueryOrigin
|
|
14
18
|
interface Uni extends UniOrigin { }
|
|
15
19
|
}
|
package/types/uni/ext/index.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
/// <reference path='./lib/uni-getAppBaseInfo/utssdk/index.d.ts' />
|
|
7
7
|
/// <reference path='./lib/uni-getDeviceInfo/utssdk/index.d.ts' />
|
|
8
8
|
/// <reference path='./lib/uni-getLocation-system/utssdk/index.d.ts' />
|
|
9
|
-
/// <reference path='./lib/uni-getLocation-tencent/utssdk/index.d.ts' />
|
|
10
9
|
/// <reference path='./lib/uni-getNetworkType/utssdk/index.d.ts' />
|
|
11
10
|
/// <reference path='./lib/uni-getRecorderManager/utssdk/index.d.ts' />
|
|
12
11
|
/// <reference path='./lib/uni-getSystemInfo/utssdk/index.d.ts' />
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EventCallback as EventCallbackOrigin,
|
|
3
|
+
InnerAudioContext as InnerAudioContextOrigin,
|
|
4
|
+
BackgroundAudioManager as BackgroundAudioManagerOrigin,
|
|
3
5
|
CreateInnerAudioContext as CreateInnerAudioContextOrigin,
|
|
4
6
|
GetBackgroundAudioManager as GetBackgroundAudioManagerOrigin,
|
|
5
7
|
Uni as UniOrigin
|
|
@@ -7,6 +9,8 @@ import {
|
|
|
7
9
|
|
|
8
10
|
declare global {
|
|
9
11
|
type EventCallback = EventCallbackOrigin
|
|
12
|
+
type InnerAudioContext = InnerAudioContextOrigin
|
|
13
|
+
type BackgroundAudioManager = BackgroundAudioManagerOrigin
|
|
10
14
|
type CreateInnerAudioContext = CreateInnerAudioContextOrigin
|
|
11
15
|
type GetBackgroundAudioManager = GetBackgroundAudioManagerOrigin
|
|
12
16
|
interface Uni extends UniOrigin { }
|
|
@@ -25,15 +25,15 @@ export type ExitOptions = {
|
|
|
25
25
|
/**
|
|
26
26
|
* 接口调用成功的回调函数
|
|
27
27
|
*/
|
|
28
|
-
success
|
|
28
|
+
success?: ExitSuccessCallback | null,
|
|
29
29
|
/**
|
|
30
30
|
* 接口调用失败的回调函数
|
|
31
31
|
*/
|
|
32
|
-
fail
|
|
32
|
+
fail?: ExitFailCallback | null,
|
|
33
33
|
/**
|
|
34
34
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
35
35
|
*/
|
|
36
|
-
complete
|
|
36
|
+
complete?: ExitCompleteCallback | null
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
|
|
@@ -45,7 +45,7 @@ export interface Uni {
|
|
|
45
45
|
* "app": {
|
|
46
46
|
* "android": {
|
|
47
47
|
* "osVer": "4.4.4",
|
|
48
|
-
* "uniVer": "
|
|
48
|
+
* "uniVer": "3.8.15",
|
|
49
49
|
* "unixVer": "3.9.0"
|
|
50
50
|
* },
|
|
51
51
|
* "ios": {
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
WriteFileFailCallback as WriteFileFailCallbackOrigin,
|
|
12
12
|
WriteFileCompleteCallback as WriteFileCompleteCallbackOrigin,
|
|
13
13
|
WriteFileOptions as WriteFileOptionsOrigin,
|
|
14
|
+
FileSystemManager as FileSystemManagerOrigin,
|
|
14
15
|
GetFileSystemManager as GetFileSystemManagerOrigin,
|
|
15
16
|
Uni as UniOrigin
|
|
16
17
|
} from './interface'
|
|
@@ -28,6 +29,7 @@ declare global {
|
|
|
28
29
|
type WriteFileFailCallback = WriteFileFailCallbackOrigin
|
|
29
30
|
type WriteFileCompleteCallback = WriteFileCompleteCallbackOrigin
|
|
30
31
|
type WriteFileOptions = WriteFileOptionsOrigin
|
|
32
|
+
type FileSystemManager = FileSystemManagerOrigin
|
|
31
33
|
type GetFileSystemManager = GetFileSystemManagerOrigin
|
|
32
34
|
interface Uni extends UniOrigin { }
|
|
33
35
|
}
|
|
@@ -38,15 +38,15 @@ export type ReadFileOptions = {
|
|
|
38
38
|
/**
|
|
39
39
|
* 接口调用的回调函数
|
|
40
40
|
*/
|
|
41
|
-
success
|
|
41
|
+
success?: ReadFileSuccessCallback | null,
|
|
42
42
|
/**
|
|
43
43
|
* 接口调用失败的回调函数
|
|
44
44
|
*/
|
|
45
|
-
fail
|
|
45
|
+
fail?: ReadFileFailCallback | null,
|
|
46
46
|
/**
|
|
47
47
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
48
48
|
*/
|
|
49
|
-
complete
|
|
49
|
+
complete?: ReadFileCompleteCallback | null
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
|
|
@@ -88,15 +88,15 @@ export type WriteFileOptions = {
|
|
|
88
88
|
/**
|
|
89
89
|
* 接口调用的回调函数
|
|
90
90
|
*/
|
|
91
|
-
success
|
|
91
|
+
success?: WriteFileSuccessCallback | null,
|
|
92
92
|
/**
|
|
93
93
|
* 接口调用失败的回调函数
|
|
94
94
|
*/
|
|
95
|
-
fail
|
|
95
|
+
fail?: WriteFileFailCallback | null,
|
|
96
96
|
/**
|
|
97
97
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
98
98
|
*/
|
|
99
|
-
complete
|
|
99
|
+
complete?: WriteFileCompleteCallback | null
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
|
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
export interface Uni {
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
|
-
* 获取当前的地理位置、速度
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
4
|
+
* @description 获取当前的地理位置、速度
|
|
5
|
+
* @param {GetLocation} option
|
|
6
|
+
* @example
|
|
7
|
+
* ```typescript
|
|
8
|
+
* uni.getLocation({
|
|
9
|
+
* type: 'wgs84',
|
|
10
|
+
* success: function (res) {
|
|
11
|
+
* console.log('当前位置的经度:' + res.longitude);
|
|
12
|
+
* console.log('当前位置的纬度:' + res.latitude);
|
|
13
|
+
* }
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
* @tutorial [](http://uniapp.dcloud.io/api/location/location?id=getlocation)
|
|
17
|
+
* @uniPlatform {
|
|
18
|
+
* "app": {
|
|
19
|
+
* "android": {
|
|
20
|
+
* "osVer": "4.4.4",
|
|
21
|
+
* "uniVer": "√",
|
|
22
|
+
* "unixVer": "3.9.0"
|
|
23
|
+
* },
|
|
24
|
+
* "ios": {
|
|
25
|
+
* "osVer": "x",
|
|
26
|
+
* "uniVer": "x",
|
|
27
|
+
* "unixVer": "x"
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
6
31
|
*/
|
|
7
32
|
getLocation: GetLocation;
|
|
8
|
-
|
|
9
|
-
* 打开地图选择位置。
|
|
10
|
-
*
|
|
11
|
-
* @tutorial http://uniapp.dcloud.io/api/location/location?id=chooselocation
|
|
12
|
-
*/
|
|
13
|
-
//chooseLocation: ChooseLocation;
|
|
33
|
+
|
|
14
34
|
}
|
|
15
35
|
|
|
36
|
+
|
|
37
|
+
|
|
16
38
|
export type GetLocation = (options: GetLocationOptions) => void;
|
|
17
39
|
export type GetLocationSuccess = {
|
|
18
40
|
/**
|
|
@@ -64,36 +86,36 @@ export type GetLocationOptions = {
|
|
|
64
86
|
/**
|
|
65
87
|
* 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标
|
|
66
88
|
*/
|
|
67
|
-
type
|
|
89
|
+
type?: string | null,
|
|
68
90
|
/**
|
|
69
91
|
* 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
|
|
70
92
|
* @type boolean
|
|
71
93
|
*/
|
|
72
|
-
altitude
|
|
94
|
+
altitude?: boolean | null,
|
|
73
95
|
/**
|
|
74
96
|
* 传入 true 会解析地址
|
|
75
97
|
* @type boolean
|
|
76
98
|
*/
|
|
77
|
-
geocode
|
|
99
|
+
geocode?: boolean | null,
|
|
78
100
|
/**
|
|
79
101
|
* 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
|
|
80
102
|
*/
|
|
81
|
-
highAccuracyExpireTime
|
|
103
|
+
highAccuracyExpireTime?: number | null,
|
|
82
104
|
/**
|
|
83
105
|
* 开启高精度定位
|
|
84
106
|
* @type boolean
|
|
85
107
|
*/
|
|
86
|
-
isHighAccuracy
|
|
108
|
+
isHighAccuracy?: boolean | null,
|
|
87
109
|
/**
|
|
88
110
|
* 接口调用成功的回调函数
|
|
89
111
|
*/
|
|
90
|
-
success
|
|
112
|
+
success?: GetLocationSuccessCallback | null,
|
|
91
113
|
/**
|
|
92
114
|
* 接口调用失败的回调函数
|
|
93
115
|
*/
|
|
94
|
-
fail
|
|
116
|
+
fail?: GetLocationFailCallback | null,
|
|
95
117
|
/**
|
|
96
118
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
97
119
|
*/
|
|
98
|
-
complete
|
|
120
|
+
complete?: GetLocationCompleteCallback | null
|
|
99
121
|
};
|
|
@@ -41,13 +41,6 @@ export type GetNetworkTypeSuccess = {
|
|
|
41
41
|
};
|
|
42
42
|
export type GetNetworkTypeSuccessCallback = (result: GetNetworkTypeSuccess) => void;
|
|
43
43
|
export type GetNetworkTypeFail = UniError;
|
|
44
|
-
type UniError = {
|
|
45
|
-
errSubject: string,
|
|
46
|
-
errCode: number,
|
|
47
|
-
errMsg: string,
|
|
48
|
-
data: object | null,
|
|
49
|
-
cause: any | null
|
|
50
|
-
};
|
|
51
44
|
export type GetNetworkTypeFailCallback = (result: GetNetworkTypeFail) => void;
|
|
52
45
|
export type GetNetworkTypeComplete = any;
|
|
53
46
|
export type GetNetworkTypeCompleteCallback = (result: GetNetworkTypeComplete) => void;
|
|
@@ -55,13 +48,13 @@ export type GetNetworkTypeOptions = {
|
|
|
55
48
|
/**
|
|
56
49
|
* 接口调用成功的回调函数
|
|
57
50
|
*/
|
|
58
|
-
success
|
|
51
|
+
success?: GetNetworkTypeSuccessCallback | null,
|
|
59
52
|
/**
|
|
60
53
|
* 接口调用失败的回调函数
|
|
61
54
|
*/
|
|
62
|
-
fail
|
|
55
|
+
fail?: GetNetworkTypeFailCallback | null,
|
|
63
56
|
/**
|
|
64
57
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
65
58
|
*/
|
|
66
|
-
complete
|
|
59
|
+
complete?: GetNetworkTypeCompleteCallback | null
|
|
67
60
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RecorderManagerStartOptions as RecorderManagerStartOptionsOrigin,
|
|
3
3
|
RecordManagerCallback as RecordManagerCallbackOrigin,
|
|
4
|
+
RecorderManager as RecorderManagerOrigin,
|
|
4
5
|
GetRecorderManager as GetRecorderManagerOrigin,
|
|
5
6
|
Uni as UniOrigin
|
|
6
7
|
} from './interface'
|
|
@@ -8,6 +9,7 @@ import {
|
|
|
8
9
|
declare global {
|
|
9
10
|
type RecorderManagerStartOptions = RecorderManagerStartOptionsOrigin
|
|
10
11
|
type RecordManagerCallback = RecordManagerCallbackOrigin
|
|
12
|
+
type RecorderManager = RecorderManagerOrigin
|
|
11
13
|
type GetRecorderManager = GetRecorderManagerOrigin
|
|
12
14
|
interface Uni extends UniOrigin { }
|
|
13
15
|
}
|
|
@@ -444,13 +444,6 @@ export type GetSystemInfoResult = {
|
|
|
444
444
|
};
|
|
445
445
|
export type GetSystemInfoSuccessCallback = (result: GetSystemInfoResult) => void;
|
|
446
446
|
type GetSystemInfoFail = UniError;
|
|
447
|
-
type UniError = {
|
|
448
|
-
errSubject: string,
|
|
449
|
-
errCode: number,
|
|
450
|
-
errMsg: string,
|
|
451
|
-
data: object | null,
|
|
452
|
-
cause: any | null
|
|
453
|
-
};
|
|
454
447
|
type GetSystemInfoFailCallback = (result: GetSystemInfoFail) => void;
|
|
455
448
|
export type GetSystemInfoComplete = any;
|
|
456
449
|
export type GetSystemInfoCompleteCallback = (result: GetSystemInfoComplete) => void;
|
|
@@ -458,15 +451,15 @@ export type GetSystemInfoOptions = {
|
|
|
458
451
|
/**
|
|
459
452
|
* 接口调用成功的回调函数
|
|
460
453
|
*/
|
|
461
|
-
success
|
|
454
|
+
success?: GetSystemInfoSuccessCallback | null,
|
|
462
455
|
/**
|
|
463
456
|
* 接口调用失败的回调函数
|
|
464
457
|
*/
|
|
465
|
-
fail
|
|
458
|
+
fail?: GetSystemInfoFailCallback | null,
|
|
466
459
|
/**
|
|
467
460
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
468
461
|
*/
|
|
469
|
-
complete
|
|
462
|
+
complete?: GetSystemInfoCompleteCallback | null
|
|
470
463
|
};
|
|
471
464
|
|
|
472
465
|
export type GetWindowInfoResult = {
|