@dcloudio/uni-app-x 0.7.13 → 0.7.14

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 (124) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +5 -6
  3. package/types/index.d.ts +1 -1
  4. package/types/native/CSSStyleDeclaration.d.ts +72 -0
  5. package/types/native/DOMRect.d.ts +180 -0
  6. package/types/native/DrawableContext.d.ts +628 -161
  7. package/types/native/IUniElement.d.ts +1834 -222
  8. package/types/native/SnapshotOptions.d.ts +0 -1
  9. package/types/native/UniApp.d.ts +17 -1
  10. package/types/native/UniEvent.d.ts +30 -0
  11. package/types/native/UniNativePage.d.ts +4 -0
  12. package/types/native/UniProvider.d.ts +14 -0
  13. package/types/native/UniResizeObserver.d.ts +92 -2
  14. package/types/native/UniSwiperAnimationFinishEvent.d.ts +24 -2
  15. package/types/native/UniSwiperChangeEvent.d.ts +24 -2
  16. package/types/native/UniSwiperTransitionEvent.d.ts +2 -2
  17. package/types/native/UniWebViewErrorEvent.d.ts +3 -3
  18. package/types/native/UniWebViewLoadEvent.d.ts +2 -2
  19. package/types/native/UniWebViewLoadingEvent.d.ts +2 -2
  20. package/types/native/UniWebViewMessageEvent.d.ts +1 -1
  21. package/types/native/global.d.ts +19 -9
  22. package/types/native/index.d.ts +1 -0
  23. package/types/page.d.ts +85 -0
  24. package/types/uni/global.d.ts +1 -0
  25. package/types/uni/index.d.ts +2 -1
  26. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  27. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  28. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -2
  30. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +6 -0
  31. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +3 -0
  32. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +56 -7
  33. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +87 -11
  34. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +292 -9
  35. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +533 -118
  36. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  37. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +2 -2
  38. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +4 -4
  39. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -74
  40. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1357 -39
  41. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +102 -6
  42. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +164 -26
  43. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +4 -4
  44. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +14 -15
  45. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +661 -41
  46. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +13 -10
  47. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  48. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +2 -2
  49. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +90 -7
  50. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +42 -0
  51. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +20 -0
  52. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +466 -0
  53. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +152 -2
  54. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +4 -4
  55. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +2 -2
  56. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +42 -37
  57. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +193 -19
  58. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -10
  59. package/types/uni/uts-plugin-extend/README.md +3 -0
  60. package/types/uni/uts-plugin-extend/global.d.ts +14 -0
  61. package/types/uni/uts-plugin-extend/index.d.ts +16 -0
  62. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -0
  63. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -0
  64. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +365 -0
  65. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -0
  66. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -0
  67. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +710 -0
  68. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/global.d.ts +21 -0
  69. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/index.d.ts +9 -0
  70. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +151 -0
  71. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -0
  72. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -0
  73. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +363 -0
  74. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +11 -0
  75. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +4 -0
  76. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +224 -0
  77. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +53 -0
  78. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +25 -0
  79. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +486 -0
  80. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +7 -0
  81. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +1 -0
  82. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +296 -0
  83. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +21 -0
  84. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +9 -0
  85. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +119 -0
  86. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -0
  87. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -0
  88. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -0
  89. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -0
  90. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +559 -0
  92. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/global.d.ts +21 -0
  93. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/index.d.ts +9 -0
  94. package/types/uni/uts-plugin-extend/lib/uni-makePhoneCall/utssdk/interface.d.ts +121 -0
  95. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -0
  96. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -0
  97. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +163 -0
  98. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -0
  99. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -0
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +143 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +21 -0
  105. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +9 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +122 -0
  107. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +9 -0
  108. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +165 -0
  110. package/types/uni-cloud/index.d.ts +4 -0
  111. package/types/uni-cloud/interface.d.ts +106 -17
  112. package/types/vue/CheckboxGroupChangeEvent.d.ts +10 -13
  113. package/types/vue/LifeCycle.d.ts +32 -32
  114. package/types/vue/PickerViewChangeEvent.d.ts +10 -13
  115. package/types/vue/ProgressActiveendEvent.d.ts +9 -11
  116. package/types/vue/RadioGroupChangeEvent.d.ts +10 -13
  117. package/types/vue/SliderChangeEvent.d.ts +9 -10
  118. package/types/vue/SwitchChangeEvent.d.ts +11 -13
  119. package/types/vue/UniCloudDBElement.d.ts +72 -75
  120. package/types/vue/UniFormElement.d.ts +17 -19
  121. package/types/vue/UniNavigatorElement.d.ts +1 -2
  122. package/types/vue/global.d.ts +190 -0
  123. package/types/vue/index.d.ts +10 -11
  124. package/types/vue-global/index.d.ts +1 -0
@@ -0,0 +1,121 @@
1
+ export interface IMakePhoneCallError extends IUniError {
2
+ errCode: number
3
+ }
4
+
5
+ /**
6
+ * uni.makePhoneCall成功回调参数
7
+ */
8
+ export type MakePhoneCallSuccess = {
9
+ }
10
+
11
+ /**
12
+ * uni.makePhoneCall失败回调参数
13
+ */
14
+ export type MakePhoneCallFail = IMakePhoneCallError;
15
+
16
+ /**
17
+ * uni.makePhoneCall成功回调函数定义
18
+ */
19
+ export type MakePhoneCallSuccessCallback = (res: MakePhoneCallSuccess) => void
20
+ /**
21
+ * uni.makePhoneCall失败回调函数定义
22
+ */
23
+ export type MakePhoneCallFailCallback = (res: MakePhoneCallFail) => void
24
+ /**
25
+ * uni.makePhoneCall完成回调函数定义
26
+ */
27
+ export type MakePhoneCallCompleteCallback = (res: any) => void
28
+
29
+ /**
30
+ * uni.makePhoneCall
31
+ */
32
+ export type MakePhoneCallOptions = {
33
+ /**
34
+ * 需要拨打的电话号码
35
+ */
36
+ phoneNumber: string;
37
+ /**
38
+ * 成功返回的回调函数
39
+ */
40
+ success?: MakePhoneCallSuccessCallback;
41
+ /**
42
+ * 失败的回调函数
43
+ */
44
+ fail?: MakePhoneCallFailCallback;
45
+ /**
46
+ * 结束的回调函数(调用成功、失败都会执行)
47
+ */
48
+ complete?: MakePhoneCallCompleteCallback;
49
+ }
50
+
51
+ export type MakePhoneCall = (options: MakePhoneCallOptions) => void
52
+
53
+
54
+ export interface Uni {
55
+ /**
56
+ * 拨打电话
57
+ *
58
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/make-phone-call.html
59
+ * @uniPlatform {
60
+ * "app": {
61
+ * "android": {
62
+ * "osVer": "5.0",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * },
66
+ * "ios": {
67
+ * "osVer": "12.0",
68
+ * "uniVer": "√",
69
+ * "unixVer": "x"
70
+ * }
71
+ * },
72
+ * "mp": {
73
+ * "weixin": {
74
+ * "hostVer": "√",
75
+ * "uniVer": "√",
76
+ * "unixVer": "x"
77
+ * },
78
+ * "alipay": {
79
+ * "hostVer": "√",
80
+ * "uniVer": "√",
81
+ * "unixVer": "x"
82
+ * },
83
+ * "baidu": {
84
+ * "hostVer": "√",
85
+ * "uniVer": "√",
86
+ * "unixVer": "x"
87
+ * },
88
+ * "toutiao": {
89
+ * "hostVer": "√",
90
+ * "uniVer": "√",
91
+ * "unixVer": "x"
92
+ * },
93
+ * "lark": {
94
+ * "hostVer": "√",
95
+ * "uniVer": "√",
96
+ * "unixVer": "x"
97
+ * },
98
+ * "qq": {
99
+ * "hostVer": "√",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "kuaishou": {
104
+ * "hostVer": "√",
105
+ * "uniVer": "√",
106
+ * "unixVer": "x"
107
+ * },
108
+ * "jd": {
109
+ * "hostVer": "√",
110
+ * "uniVer": "√",
111
+ * "unixVer": "x"
112
+ * }
113
+ * },
114
+ * "web": {
115
+ * "uniVer": "√",
116
+ * "unixVer": "4.0"
117
+ * }
118
+ * }
119
+ */
120
+ makePhoneCall(options: MakePhoneCallOptions): void
121
+ }
@@ -0,0 +1,9 @@
1
+ import { OnMemoryWarningCallback as OnMemoryWarningCallbackOrigin, OnMemoryWarning as OnMemoryWarningOrigin, OffMemoryWarningCallback as OffMemoryWarningCallbackOrigin, OffMemoryWarning as OffMemoryWarningOrigin, Uni as UniOrigin } from "./interface"
2
+
3
+ declare global {
4
+ type OnMemoryWarningCallback = OnMemoryWarningCallbackOrigin
5
+ type OnMemoryWarning = OnMemoryWarningOrigin
6
+ type OffMemoryWarningCallback = OffMemoryWarningCallbackOrigin
7
+ type OffMemoryWarning = OffMemoryWarningOrigin
8
+ interface Uni extends UniOrigin { }
9
+ }
@@ -0,0 +1 @@
1
+ export { OnMemoryWarningCallback, OnMemoryWarning, OffMemoryWarningCallback, OffMemoryWarning } from "./interface"
@@ -0,0 +1,163 @@
1
+ export interface Uni {
2
+ /**
3
+ * 监听内存不足告警事件。
4
+ *
5
+ * @tutorial https://uniapp.dcloud.io/system/memory.html#onmemorywarning
6
+ * @tutorial-uni-app https://uniapp.dcloud.io/api/system/memory.html#onmemorywarning
7
+ * @uniPlatform {
8
+ * "app": {
9
+ * "android": {
10
+ * "osVer": "5.0",
11
+ * "uniVer": "3.6.9",
12
+ * "unixVer": "x"
13
+ * },
14
+ * "ios": {
15
+ * "osVer": "9.0",
16
+ * "uniVer": "3.6.11",
17
+ * "unixVer": "x"
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "x",
21
+ * "uniVer": "x",
22
+ * "unixVer": "x"
23
+ * }
24
+ * },
25
+ * "mp": {
26
+ * "weixin": {
27
+ * "hostVer": "√",
28
+ * "uniVer": "√",
29
+ * "unixVer": "x"
30
+ * },
31
+ * "alipay": {
32
+ * "hostVer": "√",
33
+ * "uniVer": "√",
34
+ * "unixVer": "x"
35
+ * },
36
+ * "baidu": {
37
+ * "hostVer": "√",
38
+ * "uniVer": "√",
39
+ * "unixVer": "x"
40
+ * },
41
+ * "toutiao": {
42
+ * "hostVer": "x",
43
+ * "uniVer": "x",
44
+ * "unixVer": "x"
45
+ * },
46
+ * "lark": {
47
+ * "hostVer": "x",
48
+ * "uniVer": "x",
49
+ * "unixVer": "x"
50
+ * },
51
+ * "qq": {
52
+ * "hostVer": "√",
53
+ * "uniVer": "√",
54
+ * "unixVer": "x"
55
+ * },
56
+ * "kuaishou": {
57
+ * "hostVer": "√",
58
+ * "uniVer": "√",
59
+ * "unixVer": "x"
60
+ * },
61
+ * "jd": {
62
+ * "hostVer": "√",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * }
66
+ * },
67
+ * "web": {
68
+ * "uniVer": "x",
69
+ * "unixVer": "x"
70
+ * }
71
+ * }
72
+ */
73
+ onMemoryWarning: OnMemoryWarning;
74
+ /**
75
+ * 取消监听内存不足告警事件。不传入 callback 则取消所有监听。
76
+ *
77
+ * @tutorial https://uniapp.dcloud.io/api/media/background-audio-manager.html
78
+ * @tutorial-uni-app https://uniapp.dcloud.io/api/media/background-audio-manager.html
79
+ * @uniPlatform {
80
+ * "app": {
81
+ * "android": {
82
+ * "osVer": "x",
83
+ * "uniVer": "√",
84
+ * "unixVer": "x"
85
+ * },
86
+ * "ios": {
87
+ * "osVer": "x",
88
+ * "uniVer": "x",
89
+ * "unixVer": "x"
90
+ * },
91
+ * "harmony": {
92
+ * "osVer": "x",
93
+ * "uniVer": "x",
94
+ * "unixVer": "x"
95
+ * }
96
+ * },
97
+ * "mp": {
98
+ * "weixin": {
99
+ * "hostVer": "√",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "alipay": {
104
+ * "hostVer": "√",
105
+ * "uniVer": "√",
106
+ * "unixVer": "x"
107
+ * },
108
+ * "baidu": {
109
+ * "hostVer": "√",
110
+ * "uniVer": "√",
111
+ * "unixVer": "x"
112
+ * },
113
+ * "toutiao": {
114
+ * "hostVer": "x",
115
+ * "uniVer": "x",
116
+ * "unixVer": "x"
117
+ * },
118
+ * "lark": {
119
+ * "hostVer": "x",
120
+ * "uniVer": "x",
121
+ * "unixVer": "x"
122
+ * },
123
+ * "qq": {
124
+ * "hostVer": "√",
125
+ * "uniVer": "√",
126
+ * "unixVer": "x"
127
+ * },
128
+ * "kuaishou": {
129
+ * "hostVer": "√",
130
+ * "uniVer": "√",
131
+ * "unixVer": "x"
132
+ * },
133
+ * "jd": {
134
+ * "hostVer": "√",
135
+ * "uniVer": "√",
136
+ * "unixVer": "x"
137
+ * }
138
+ * },
139
+ * "web": {
140
+ * "uniVer": "x",
141
+ * "unixVer": "x"
142
+ * }
143
+ * }
144
+ */
145
+ offMemoryWarning: OffMemoryWarning;
146
+ }
147
+
148
+ export type OnMemoryWarning = (callback: OnMemoryWarningCallback) => void;
149
+ export type OnMemoryWarningCallbackResult = {
150
+ /**
151
+ * 仅 Android 有该字段,对应系统内存告警等级宏定义
152
+ */
153
+ level: number
154
+ };
155
+ export type OnMemoryWarningCallback = (result: OnMemoryWarningCallbackResult) => void;
156
+ export type OffMemoryWarning = (callback: OffMemoryWarningCallback) => void;
157
+ export type OffMemoryWarningCallbackResult = {
158
+ /**
159
+ * 仅 Android 有该字段,对应系统内存告警等级宏定义
160
+ */
161
+ level: number
162
+ };
163
+ export type OffMemoryWarningCallback = (result: OffMemoryWarningCallbackResult) => void;
@@ -0,0 +1,21 @@
1
+ import {
2
+ OpenLocationOptions as OpenLocationOptionsOrigin,
3
+ OpenLocationSuccess as OpenLocationSuccessOrigin,
4
+ OpenLocationFail as OpenLocationFailOrigin,
5
+ OpenLocationSuccessCallback as OpenLocationSuccessCallbackOrigin,
6
+ OpenLocationFailCallback as OpenLocationFailCallbackOrigin,
7
+ OpenLocationCompleteCallback as OpenLocationCompleteCallbackOrigin,
8
+ OpenLocation as OpenLocationOrigin,
9
+ Uni as UniOrigin
10
+ } from './interface'
11
+
12
+ declare global {
13
+ type OpenLocationOptions = OpenLocationOptionsOrigin
14
+ type OpenLocationSuccess = OpenLocationSuccessOrigin
15
+ type OpenLocationFail = OpenLocationFailOrigin
16
+ type OpenLocationSuccessCallback = OpenLocationSuccessCallbackOrigin
17
+ type OpenLocationFailCallback = OpenLocationFailCallbackOrigin
18
+ type OpenLocationCompleteCallback = OpenLocationCompleteCallbackOrigin
19
+ type OpenLocation = OpenLocationOrigin
20
+ interface Uni extends UniOrigin { }
21
+ }
@@ -0,0 +1,9 @@
1
+ export {
2
+ OpenLocationSuccess,
3
+ OpenLocationFail,
4
+ OpenLocationSuccessCallback,
5
+ OpenLocationFailCallback,
6
+ OpenLocationCompleteCallback,
7
+ OpenLocationOptions,
8
+ OpenLocation,
9
+ } from './interface'
@@ -0,0 +1,143 @@
1
+ export interface IOpenLocationError extends IUniError {
2
+ errCode: number
3
+ }
4
+
5
+ /**
6
+ * uni.openLocation成功回调参数
7
+ */
8
+ export type OpenLocationSuccess = {
9
+ }
10
+
11
+ /**
12
+ * uni.openLocation失败回调参数
13
+ */
14
+ export type OpenLocationFail = IOpenLocationError;
15
+
16
+ /**
17
+ * uni.openLocation成功回调函数定义
18
+ */
19
+ export type OpenLocationSuccessCallback = (res: OpenLocationSuccess) => void
20
+ /**
21
+ * uni.openLocation失败回调函数定义
22
+ */
23
+ export type OpenLocationFailCallback = (res: OpenLocationFail) => void
24
+ /**
25
+ * uni.openLocation完成回调函数定义
26
+ */
27
+ export type OpenLocationCompleteCallback = (res: any) => void
28
+
29
+ /**
30
+ * uni.openLocation
31
+ */
32
+ export type OpenLocationOptions = {
33
+ /**
34
+ * 纬度,范围为-90~90,负数表示南纬
35
+ */
36
+ latitude: number;
37
+ /**
38
+ * 经度,范围为-180~180,负数表示西经
39
+ */
40
+ longitude: number;
41
+ /**
42
+ * 缩放比例,范围5~18,默认为18
43
+ */
44
+ scale?: number;
45
+ /**
46
+ * 位置名称
47
+ */
48
+ name?: string;
49
+ /**
50
+ * 地址的详细说明
51
+ */
52
+ address?: string;
53
+ /**
54
+ * 成功返回的回调函数
55
+ */
56
+ success?: OpenLocationSuccessCallback;
57
+ /**
58
+ * 失败的回调函数
59
+ */
60
+ fail?: OpenLocationFailCallback;
61
+ /**
62
+ * 结束的回调函数(调用成功、失败都会执行)
63
+ */
64
+ complete?: OpenLocationCompleteCallback;
65
+ }
66
+
67
+ export type OpenLocation = (options: OpenLocationOptions) => void
68
+
69
+
70
+ export interface Uni {
71
+ /**
72
+ * 使用地图查看位置
73
+ *
74
+ * @tutorial https://uniapp.dcloud.io/api/location/open-location.html
75
+ * @tutorial-uni-app https://uniapp.dcloud.io/api/location/open-location.html
76
+ * @uniPlatform {
77
+ * "app": {
78
+ * "android": {
79
+ * "osVer": "5.0",
80
+ * "uniVer": "√",
81
+ * "unixVer": "x"
82
+ * },
83
+ * "ios": {
84
+ * "osVer": "12.0",
85
+ * "uniVer": "√",
86
+ * "unixVer": "x"
87
+ * },
88
+ * "harmony": {
89
+ * "osVer": "x",
90
+ * "uniVer": "x",
91
+ * "unixVer": "x"
92
+ * }
93
+ * },
94
+ * "mp": {
95
+ * "weixin": {
96
+ * "hostVer": "√",
97
+ * "uniVer": "√",
98
+ * "unixVer": "x"
99
+ * },
100
+ * "alipay": {
101
+ * "hostVer": "√",
102
+ * "uniVer": "√",
103
+ * "unixVer": "x"
104
+ * },
105
+ * "baidu": {
106
+ * "hostVer": "√",
107
+ * "uniVer": "√",
108
+ * "unixVer": "x"
109
+ * },
110
+ * "toutiao": {
111
+ * "hostVer": "√",
112
+ * "uniVer": "√",
113
+ * "unixVer": "x"
114
+ * },
115
+ * "lark": {
116
+ * "hostVer": "√",
117
+ * "uniVer": "√",
118
+ * "unixVer": "x"
119
+ * },
120
+ * "qq": {
121
+ * "hostVer": "x",
122
+ * "uniVer": "x",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "kuaishou": {
126
+ * "hostVer": "x",
127
+ * "uniVer": "x",
128
+ * "unixVer": "x"
129
+ * },
130
+ * "jd": {
131
+ * "hostVer": "x",
132
+ * "uniVer": "x",
133
+ * "unixVer": "x"
134
+ * }
135
+ * },
136
+ * "web": {
137
+ * "uniVer": "√",
138
+ * "unixVer": "4.0"
139
+ * }
140
+ * }
141
+ */
142
+ openLocation(options: OpenLocationOptions): void
143
+ }
@@ -0,0 +1,7 @@
1
+ import { PreloadPageOptions as PreloadPageOptionsOrigin, PreloadPage as PreloadPageOrigin, Uni as UniOrigin } from "./interface"
2
+
3
+ declare global {
4
+ type PreloadPageOptions = PreloadPageOptionsOrigin
5
+ type PreloadPage = PreloadPageOrigin
6
+ interface Uni extends UniOrigin {}
7
+ }
@@ -0,0 +1 @@
1
+ export { PreloadPageOptions, PreloadPage } from "./interface"
@@ -0,0 +1,106 @@
1
+ export interface Uni {
2
+ /**
3
+ * 预加载页面
4
+ *
5
+ * @tutorial https://uniapp.dcloud.io/api/preload-page.html
6
+ * @tutorial-uni-app https://uniapp.dcloud.io/api/preload-page.html
7
+ * @uniPlatform {
8
+ * "app": {
9
+ * "android": {
10
+ * "osVer": "5.0",
11
+ * "uniVer": "2.7.12",
12
+ * "unixVer": "x"
13
+ * },
14
+ * "ios": {
15
+ * "osVer": "9.0",
16
+ * "uniVer": "2.7.12",
17
+ * "unixVer": "x"
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "x",
21
+ * "uniVer": "x",
22
+ * "unixVer": "x"
23
+ * }
24
+ * },
25
+ * "mp": {
26
+ * "weixin": {
27
+ * "hostVer": "x",
28
+ * "uniVer": "x",
29
+ * "unixVer": "x"
30
+ * },
31
+ * "alipay": {
32
+ * "hostVer": "x",
33
+ * "uniVer": "x",
34
+ * "unixVer": "x"
35
+ * },
36
+ * "baidu": {
37
+ * "hostVer": "x",
38
+ * "uniVer": "x",
39
+ * "unixVer": "x"
40
+ * },
41
+ * "toutiao": {
42
+ * "hostVer": "x",
43
+ * "uniVer": "x",
44
+ * "unixVer": "x"
45
+ * },
46
+ * "lark": {
47
+ * "hostVer": "x",
48
+ * "uniVer": "x",
49
+ * "unixVer": "x"
50
+ * },
51
+ * "qq": {
52
+ * "hostVer": "x",
53
+ * "uniVer": "x",
54
+ * "unixVer": "x"
55
+ * },
56
+ * "kuaishou": {
57
+ * "hostVer": "x",
58
+ * "uniVer": "x",
59
+ * "unixVer": "x"
60
+ * },
61
+ * "jd": {
62
+ * "hostVer": "x",
63
+ * "uniVer": "x",
64
+ * "unixVer": "x"
65
+ * }
66
+ * },
67
+ * "web": {
68
+ * "uniVer": "2.7.12",
69
+ * "unixVer": "x"
70
+ * }
71
+ * }
72
+ */
73
+ preloadPage: PreloadPage;
74
+ }
75
+ export type PreloadPage = (options: PreloadPageOptions) => void;
76
+ export type PreloadPageSuccess = {};
77
+ export type UniError = {
78
+ errSubject: string,
79
+ errCode: number,
80
+ errMsg: string,
81
+ data?: object | null,
82
+ cause?: any | null
83
+ };
84
+ export type PreloadPageSuccessCallback = (result: PreloadPageSuccess) => void;
85
+ export type PreloadPageFail = UniError;
86
+ export type PreloadPageFailCallback = (result: PreloadPageFail) => void;
87
+ export type PreloadPageComplete = any;
88
+ export type PreloadPageCompleteCallback = (result: PreloadPageComplete) => void;
89
+ export type PreloadPageOptions = {
90
+ /**
91
+ * 预加载页面的路径
92
+ */
93
+ url: string,
94
+ /**
95
+ * 接口调用成功的回调函数
96
+ */
97
+ success?: PreloadPageSuccessCallback | null,
98
+ /**
99
+ * 接口调用失败的回调函数
100
+ */
101
+ fail?: PreloadPageFailCallback | null,
102
+ /**
103
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
104
+ */
105
+ complete?: PreloadPageCompleteCallback | null
106
+ };
@@ -0,0 +1,21 @@
1
+ import {
2
+ SetClipboardDataSuccess as SetClipboardDataSuccessOrigin,
3
+ SetClipboardDataFail as SetClipboardDataFailOrigin,
4
+ SetClipboardDataSuccessCallback as SetClipboardDataSuccessCallbackOrigin,
5
+ SetClipboardDataFailCallback as SetClipboardDataFailCallbackOrigin,
6
+ SetClipboardDataCompleteCallback as SetClipboardDataCompleteCallbackOrigin,
7
+ SetClipboardDataOptions as SetClipboardDataOptionsOrigin,
8
+ setClipboardData as setClipboardDataOrigin,
9
+ Uni as UniOrigin
10
+ } from './interface'
11
+
12
+ declare global {
13
+ type SetClipboardDataSuccess = SetClipboardDataSuccessOrigin
14
+ type SetClipboardDataFail = SetClipboardDataFailOrigin
15
+ type SetClipboardDataSuccessCallback = SetClipboardDataSuccessCallbackOrigin
16
+ type SetClipboardDataFailCallback = SetClipboardDataFailCallbackOrigin
17
+ type SetClipboardDataCompleteCallback = SetClipboardDataCompleteCallbackOrigin
18
+ type SetClipboardDataOptions = SetClipboardDataOptionsOrigin
19
+ type setClipboardData = setClipboardDataOrigin
20
+ interface Uni extends UniOrigin { }
21
+ }
@@ -0,0 +1,9 @@
1
+ export {
2
+ SetClipboardDataSuccess,
3
+ SetClipboardDataFail,
4
+ SetClipboardDataSuccessCallback,
5
+ SetClipboardDataFailCallback,
6
+ SetClipboardDataCompleteCallback,
7
+ SetClipboardDataOptions,
8
+ setClipboardData,
9
+ } from './interface'