@hylid/types 2.12.0-alpha.35 → 2.12.0-alpha.37
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/custom/appLink.d.ts +32 -0
- package/lib/custom/appLink.js +1 -0
- package/lib/custom/index.d.ts +4 -0
- package/lib/custom/index.js +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/package.json +1 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare type AppLinkParams = {
|
|
2
|
+
/** 小程序id / 应用id */
|
|
3
|
+
appId: string;
|
|
4
|
+
/** 唤端的 h5 页面
|
|
5
|
+
* - 如果为字符串,则直接使用该字符串作为 url,会拼接为 `${page}?url=${url}`
|
|
6
|
+
* - 如果为对象,则根据对象中的 mode 和 key 来拼接 url
|
|
7
|
+
* - 如果为 false,则不拼接 url
|
|
8
|
+
*/
|
|
9
|
+
url: string | {
|
|
10
|
+
/** 固定为 pageQuery, 表示自动拼接到 pageQuery 中,如:
|
|
11
|
+
* page = '/pages/index/index' 时,会拼接为 `/pages/index/index?${key}=${value}`
|
|
12
|
+
*/
|
|
13
|
+
mode: 'pageQuery';
|
|
14
|
+
/** 配置 url 拼接参数的 key 值, mode 为 pageQuery 时,
|
|
15
|
+
* 若 page = '/pages/index/index',会拼接为 `/pages/index/index?${key}=${value}`
|
|
16
|
+
*/
|
|
17
|
+
key: string;
|
|
18
|
+
/** 配置 url 拼接参数的 value 值, mode 为 pageQuery 时,
|
|
19
|
+
* 若 page = '/pages/index/index',会拼接为 `/pages/index/index?${key}=${value}`
|
|
20
|
+
*/
|
|
21
|
+
value: string;
|
|
22
|
+
} | false;
|
|
23
|
+
/** 小程序 page, 不传默认为 /pages/index/index */
|
|
24
|
+
page?: string;
|
|
25
|
+
/** 应用的 query 信息 **注意不是pageQuery** */
|
|
26
|
+
query?: Record<string, any>;
|
|
27
|
+
/** 小程序的 debug 版本信息 */
|
|
28
|
+
debugConfig?: {
|
|
29
|
+
version: string;
|
|
30
|
+
token?: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED