hylid-bridge 4.0.0-alpha.4 → 4.0.0-alpha.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/lib/bridges.d.ts CHANGED
@@ -726,7 +726,12 @@ export declare const getLocation: PickMPAttr<'getLocation'>;
726
726
  * | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,truemoney |
727
727
  * | web | demo,alipay,h5,tngdh5ng |
728
728
  */
729
- export declare const getLocationAsync: (args?: GetLocationArgs | undefined) => Promise<GetLocationCallbackValue>;
729
+ export declare const getLocationAsync: (args?: ({
730
+ bizType?: string | undefined;
731
+ requestType?: number | undefined;
732
+ timeout?: number | undefined;
733
+ horizontalAccuracy?: number | undefined;
734
+ } & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
730
735
  /**
731
736
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Device_Network_getNetworkType
732
737
  * @support
@@ -2902,7 +2907,17 @@ export declare const easyShare: PickMPAttr<'easyShare'>;
2902
2907
  * | mp_web | |
2903
2908
  * | web | alipay |
2904
2909
  */
2905
- export declare const easyShareAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
2910
+ export declare const easyShareAsync: (args?: ({
2911
+ bizType: string;
2912
+ title: string;
2913
+ desc: string;
2914
+ searchTips?: string | undefined;
2915
+ iconUrl?: string | undefined;
2916
+ icon?: string | undefined;
2917
+ imageUrl?: string | undefined;
2918
+ image?: string | undefined;
2919
+ url: string;
2920
+ } & AsyncCallback<void>) | undefined) => Promise<void>;
2906
2921
  /**
2907
2922
  * @support
2908
2923
  * | Platform | Apps |
@@ -193,7 +193,12 @@ declare const _default: {
193
193
  } & AsyncCallback<any>) => void;
194
194
  getFileInfo: (args: GetFileArgs) => void;
195
195
  getImageInfo: (args: GetImageInfo) => void;
196
- getLocation: (args: GetLocationArgs) => void;
196
+ getLocation: (args: {
197
+ bizType?: string | undefined;
198
+ requestType?: number | undefined;
199
+ timeout?: number | undefined;
200
+ horizontalAccuracy?: number | undefined;
201
+ } & GetLocationArgs) => void;
197
202
  getNetworkType: (args: GetNetworkTypeArgs) => void;
198
203
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
199
204
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -189,7 +189,12 @@ declare const _default: {
189
189
  } & AsyncCallback<any>) => void;
190
190
  getFileInfo: (args: GetFileArgs) => void;
191
191
  getImageInfo: (args: GetImageInfo) => void;
192
- getLocation: (args: GetLocationArgs) => void;
192
+ getLocation: (args: {
193
+ bizType?: string | undefined;
194
+ requestType?: number | undefined;
195
+ timeout?: number | undefined;
196
+ horizontalAccuracy?: number | undefined;
197
+ } & GetLocationArgs) => void;
193
198
  getNetworkType: (args: GetNetworkTypeArgs) => void;
194
199
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
195
200
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -189,7 +189,12 @@ declare const _default: {
189
189
  } & AsyncCallback<any>) => void;
190
190
  getFileInfo: (args: GetFileArgs) => void;
191
191
  getImageInfo: (args: GetImageInfo) => void;
192
- getLocation: (args: GetLocationArgs) => void;
192
+ getLocation: (args: {
193
+ bizType?: string | undefined;
194
+ requestType?: number | undefined;
195
+ timeout?: number | undefined;
196
+ horizontalAccuracy?: number | undefined;
197
+ } & GetLocationArgs) => void;
193
198
  getNetworkType: (args: GetNetworkTypeArgs) => void;
194
199
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
195
200
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -189,7 +189,12 @@ declare const _default: {
189
189
  } & AsyncCallback<any>) => void;
190
190
  getFileInfo: (args: GetFileArgs) => void;
191
191
  getImageInfo: (args: GetImageInfo) => void;
192
- getLocation: (args: GetLocationArgs) => void;
192
+ getLocation: (args: {
193
+ bizType?: string | undefined;
194
+ requestType?: number | undefined;
195
+ timeout?: number | undefined;
196
+ horizontalAccuracy?: number | undefined;
197
+ } & GetLocationArgs) => void;
193
198
  getNetworkType: (args: GetNetworkTypeArgs) => void;
194
199
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
195
200
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -225,7 +225,12 @@ declare const _default: {
225
225
  } & AsyncCallback<any>) => void;
226
226
  getFileInfo: (args: GetFileArgs) => void;
227
227
  getImageInfo: (args: GetImageInfo) => void;
228
- getLocation: (args: GetLocationArgs) => void;
228
+ getLocation: (args: {
229
+ bizType?: string | undefined;
230
+ requestType?: number | undefined;
231
+ timeout?: number | undefined;
232
+ horizontalAccuracy?: number | undefined;
233
+ } & GetLocationArgs) => void;
229
234
  getNetworkType: (args: GetNetworkTypeArgs) => void;
230
235
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
231
236
  getPaymentCode: (args?: any) => void;
@@ -189,7 +189,12 @@ declare const _default: {
189
189
  } & AsyncCallback<any>) => void;
190
190
  getFileInfo: (args: GetFileArgs) => void;
191
191
  getImageInfo: (args: GetImageInfo) => void;
192
- getLocation: (args: GetLocationArgs) => void;
192
+ getLocation: (args: {
193
+ bizType?: string | undefined;
194
+ requestType?: number | undefined;
195
+ timeout?: number | undefined;
196
+ horizontalAccuracy?: number | undefined;
197
+ } & GetLocationArgs) => void;
193
198
  getNetworkType: (args: GetNetworkTypeArgs) => void;
194
199
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
195
200
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -189,7 +189,12 @@ declare const _default: {
189
189
  } & AsyncCallback<any>) => void;
190
190
  getFileInfo: (args: GetFileArgs) => void;
191
191
  getImageInfo: (args: GetImageInfo) => void;
192
- getLocation: (args: GetLocationArgs) => void;
192
+ getLocation: (args: {
193
+ bizType?: string | undefined;
194
+ requestType?: number | undefined;
195
+ timeout?: number | undefined;
196
+ horizontalAccuracy?: number | undefined;
197
+ } & GetLocationArgs) => void;
193
198
  getNetworkType: (args: GetNetworkTypeArgs) => void;
194
199
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
195
200
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -189,7 +189,12 @@ declare const _default: {
189
189
  } & AsyncCallback<any>) => void;
190
190
  getFileInfo: (args: GetFileArgs) => void;
191
191
  getImageInfo: (args: GetImageInfo) => void;
192
- getLocation: (args: GetLocationArgs) => void;
192
+ getLocation: (args: {
193
+ bizType?: string | undefined;
194
+ requestType?: number | undefined;
195
+ timeout?: number | undefined;
196
+ horizontalAccuracy?: number | undefined;
197
+ } & GetLocationArgs) => void;
193
198
  getNetworkType: (args: GetNetworkTypeArgs) => void;
194
199
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
195
200
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -181,7 +181,12 @@ declare const _default: {
181
181
  } & AsyncCallback<any>) => void;
182
182
  getFileInfo: (args: GetFileArgs) => void;
183
183
  getImageInfo: (args: GetImageInfo) => void;
184
- getLocation: (args: GetLocationArgs) => void;
184
+ getLocation: (args: {
185
+ bizType?: string | undefined;
186
+ requestType?: number | undefined;
187
+ timeout?: number | undefined;
188
+ horizontalAccuracy?: number | undefined;
189
+ } & GetLocationArgs) => void;
185
190
  getNetworkType: (args: GetNetworkTypeArgs) => void;
186
191
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
187
192
  getPhoneNumber: (args?: any) => void;
@@ -191,7 +191,12 @@ declare const _default: {
191
191
  } & AsyncCallback<any>) => void;
192
192
  getFileInfo: (args: GetFileArgs) => void;
193
193
  getImageInfo: (args: GetImageInfo) => void;
194
- getLocation: (args: GetLocationArgs) => void;
194
+ getLocation: (args: {
195
+ bizType?: string | undefined;
196
+ requestType?: number | undefined;
197
+ timeout?: number | undefined;
198
+ horizontalAccuracy?: number | undefined;
199
+ } & GetLocationArgs) => void;
195
200
  getNetworkType: (args: GetNetworkTypeArgs) => void;
196
201
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
197
202
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -177,7 +177,12 @@ declare const _default: {
177
177
  } & AsyncCallback<any>) => void;
178
178
  getFileInfo: (args: GetFileArgs) => void;
179
179
  getImageInfo: (args: GetImageInfo) => void;
180
- getLocation: (args: GetLocationArgs) => void;
180
+ getLocation: (args: {
181
+ bizType?: string | undefined;
182
+ requestType?: number | undefined;
183
+ timeout?: number | undefined;
184
+ horizontalAccuracy?: number | undefined;
185
+ } & GetLocationArgs) => void;
181
186
  getNetworkType: (args: GetNetworkTypeArgs) => void;
182
187
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
183
188
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -191,7 +191,12 @@ declare const _default: {
191
191
  } & AsyncCallback<any>) => void;
192
192
  getFileInfo: (args: GetFileArgs) => void;
193
193
  getImageInfo: (args: GetImageInfo) => void;
194
- getLocation: (args: GetLocationArgs) => void;
194
+ getLocation: (args: {
195
+ bizType?: string | undefined;
196
+ requestType?: number | undefined;
197
+ timeout?: number | undefined;
198
+ horizontalAccuracy?: number | undefined;
199
+ } & GetLocationArgs) => void;
195
200
  getNetworkType: (args: GetNetworkTypeArgs) => void;
196
201
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
197
202
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -211,7 +211,12 @@ declare const _default: {
211
211
  } & AsyncCallback<any>) => void;
212
212
  getFileInfo: (args: GetFileArgs) => void;
213
213
  getImageInfo: (args: GetImageInfo) => void;
214
- getLocation: (args: GetLocationArgs) => void;
214
+ getLocation: (args: {
215
+ bizType?: string | undefined;
216
+ requestType?: number | undefined;
217
+ timeout?: number | undefined;
218
+ horizontalAccuracy?: number | undefined;
219
+ } & GetLocationArgs) => void;
215
220
  getNetworkType: (args: GetNetworkTypeArgs) => void;
216
221
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
217
222
  getPaymentCode: (args?: any) => void;
@@ -191,7 +191,12 @@ declare const _default: {
191
191
  } & AsyncCallback<any>) => void;
192
192
  getFileInfo: (args: GetFileArgs) => void;
193
193
  getImageInfo: (args: GetImageInfo) => void;
194
- getLocation: (args: GetLocationArgs) => void;
194
+ getLocation: (args: {
195
+ bizType?: string | undefined;
196
+ requestType?: number | undefined;
197
+ timeout?: number | undefined;
198
+ horizontalAccuracy?: number | undefined;
199
+ } & GetLocationArgs) => void;
195
200
  getNetworkType: (args: GetNetworkTypeArgs) => void;
196
201
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
197
202
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -191,7 +191,12 @@ declare const _default: {
191
191
  } & AsyncCallback<any>) => void;
192
192
  getFileInfo: (args: GetFileArgs) => void;
193
193
  getImageInfo: (args: GetImageInfo) => void;
194
- getLocation: (args: GetLocationArgs) => void;
194
+ getLocation: (args: {
195
+ bizType?: string | undefined;
196
+ requestType?: number | undefined;
197
+ timeout?: number | undefined;
198
+ horizontalAccuracy?: number | undefined;
199
+ } & GetLocationArgs) => void;
195
200
  getNetworkType: (args: GetNetworkTypeArgs) => void;
196
201
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
197
202
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -191,7 +191,12 @@ declare const _default: {
191
191
  } & AsyncCallback<any>) => void;
192
192
  getFileInfo: (args: GetFileArgs) => void;
193
193
  getImageInfo: (args: GetImageInfo) => void;
194
- getLocation: (args: GetLocationArgs) => void;
194
+ getLocation: (args: {
195
+ bizType?: string | undefined;
196
+ requestType?: number | undefined;
197
+ timeout?: number | undefined;
198
+ horizontalAccuracy?: number | undefined;
199
+ } & GetLocationArgs) => void;
195
200
  getNetworkType: (args: GetNetworkTypeArgs) => void;
196
201
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
197
202
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
@@ -162,7 +162,7 @@ declare const _default: {
162
162
  imageUrl?: string | undefined;
163
163
  image?: string | undefined;
164
164
  url: string;
165
- }) => void;
165
+ } & AsyncCallback<void>) => void;
166
166
  homeAddAppToMyApps: (args: {
167
167
  appId: string;
168
168
  }) => void;
@@ -215,7 +215,12 @@ declare const _default: {
215
215
  scopes: string | string[];
216
216
  appId?: string | undefined;
217
217
  } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
218
- getLocation: (args: GetLocationArgs) => void;
218
+ getLocation: (args: {
219
+ bizType?: string | undefined;
220
+ requestType?: number | undefined;
221
+ timeout?: number | undefined;
222
+ horizontalAccuracy?: number | undefined;
223
+ } & GetLocationArgs) => void;
219
224
  getNetworkType: (args: GetNetworkTypeArgs) => void;
220
225
  getPhoneNumber: (args?: any) => void;
221
226
  getSiteInfo: typeof getSiteInfo;
@@ -178,7 +178,12 @@ declare const _default: {
178
178
  scopes: string | string[];
179
179
  appId?: string | undefined;
180
180
  } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
181
- getLocation: (args: GetLocationArgs) => void;
181
+ getLocation: (args: {
182
+ bizType?: string | undefined;
183
+ requestType?: number | undefined;
184
+ timeout?: number | undefined;
185
+ horizontalAccuracy?: number | undefined;
186
+ } & GetLocationArgs) => void;
182
187
  getNetworkType: (args: GetNetworkTypeArgs) => void;
183
188
  getPhoneNumber: (args?: any) => void;
184
189
  getSiteInfo: typeof getSiteInfo;
@@ -30,7 +30,12 @@ declare const _default: {
30
30
  vibrate: (args: AsyncCallback<void>) => void;
31
31
  alert: (args?: AlertArgs | undefined) => void;
32
32
  confirm: (args: ConfirmArgs) => void;
33
- getLocation: (args: GetLocationArgs) => void;
33
+ getLocation: (args: {
34
+ bizType?: string | undefined;
35
+ requestType?: number | undefined;
36
+ timeout?: number | undefined;
37
+ horizontalAccuracy?: number | undefined;
38
+ } & GetLocationArgs) => void;
34
39
  getNetworkType: (args: GetNetworkTypeArgs) => void;
35
40
  navigateBack: (args: NavigateBackArgs) => void;
36
41
  navigateTo: (args: NavigateToArgs) => void;
@@ -1,9 +1,19 @@
1
1
  /**
2
2
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Location_getLocation
3
3
  */
4
- export declare const getLocation: (args: GetLocationArgs) => void;
4
+ export declare const getLocation: (args: {
5
+ bizType?: string | undefined;
6
+ requestType?: number | undefined;
7
+ timeout?: number | undefined;
8
+ horizontalAccuracy?: number | undefined;
9
+ } & GetLocationArgs) => void;
5
10
  export default getLocation;
6
11
  /**
7
12
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Location_getLocation
8
13
  */
9
- export declare const getLocationAsync: (args?: GetLocationArgs | undefined) => Promise<GetLocationCallbackValue>;
14
+ export declare const getLocationAsync: (args?: ({
15
+ bizType?: string | undefined;
16
+ requestType?: number | undefined;
17
+ timeout?: number | undefined;
18
+ horizontalAccuracy?: number | undefined;
19
+ } & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
@@ -1,9 +1,19 @@
1
1
  /**
2
2
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Location_getLocation
3
3
  */
4
- export declare const getLocation: (args: GetLocationArgs) => void;
4
+ export declare const getLocation: (args: {
5
+ bizType?: string | undefined;
6
+ requestType?: number | undefined;
7
+ timeout?: number | undefined;
8
+ horizontalAccuracy?: number | undefined;
9
+ } & GetLocationArgs) => void;
5
10
  export default getLocation;
6
11
  /**
7
12
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Location_getLocation
8
13
  */
9
- export declare const getLocationAsync: (args?: GetLocationArgs | undefined) => Promise<GetLocationCallbackValue>;
14
+ export declare const getLocationAsync: (args?: ({
15
+ bizType?: string | undefined;
16
+ requestType?: number | undefined;
17
+ timeout?: number | undefined;
18
+ horizontalAccuracy?: number | undefined;
19
+ } & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
@@ -8,6 +8,16 @@ export declare const easyShare: (args: {
8
8
  imageUrl?: string | undefined;
9
9
  image?: string | undefined;
10
10
  url: string;
11
- }) => void;
11
+ } & AsyncCallback<void>) => void;
12
12
  export default easyShare;
13
- export declare const easyShareAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
13
+ export declare const easyShareAsync: (args?: ({
14
+ bizType: string;
15
+ title: string;
16
+ desc: string;
17
+ searchTips?: string | undefined;
18
+ iconUrl?: string | undefined;
19
+ icon?: string | undefined;
20
+ imageUrl?: string | undefined;
21
+ image?: string | undefined;
22
+ url: string;
23
+ } & AsyncCallback<void>) | undefined) => Promise<void>;
package/lib/dsl.d.ts CHANGED
@@ -726,7 +726,12 @@ export declare const getLocation: PickMPAttr<'getLocation'>;
726
726
  * | mp_web | demo,gcash,tngd,alipay,chope,alipayhk,dana,truemoney |
727
727
  * | web | demo,alipay,h5,tngdh5ng |
728
728
  */
729
- export declare const getLocationAsync: (args?: GetLocationArgs | undefined) => Promise<GetLocationCallbackValue>;
729
+ export declare const getLocationAsync: (args?: ({
730
+ bizType?: string | undefined;
731
+ requestType?: number | undefined;
732
+ timeout?: number | undefined;
733
+ horizontalAccuracy?: number | undefined;
734
+ } & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
730
735
  /**
731
736
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Device_Network_getNetworkType
732
737
  * @support
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hylid-bridge",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.6",
4
4
  "main": "lib/index.js",
5
5
  "description": "Unite Api For MiniProgram Project",
6
6
  "files": [
@@ -55,12 +55,12 @@
55
55
  "@alipay/stdlib": "^1.22.5",
56
56
  "@babel/runtime": "7.18.9",
57
57
  "@goldfishjs/utils": "^2.18.0",
58
- "@hylid/call": "^4.0.0-alpha.4",
59
- "@hylid/custom-jsapi": "^4.0.0-alpha.4",
60
- "@hylid/env": "^4.0.0-alpha.4",
61
- "@hylid/types": "^4.0.0-alpha.4",
58
+ "@hylid/call": "^4.0.0-alpha.6",
59
+ "@hylid/custom-jsapi": "^4.0.0-alpha.6",
60
+ "@hylid/env": "^4.0.0-alpha.6",
61
+ "@hylid/types": "^4.0.0-alpha.6",
62
62
  "@types/miniprogram": "^1.0.3",
63
- "miniapp-web-jsapi": "^4.0.0-alpha.4",
63
+ "miniapp-web-jsapi": "^4.0.0-alpha.6",
64
64
  "url-parse": "^1.5.10"
65
65
  },
66
66
  "devDependencies": {