@freelog/tools-lib 0.1.183 → 0.1.184

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.
@@ -10,6 +10,13 @@ interface ActivitiesParamsType {
10
10
  activityID: string;
11
11
  }
12
12
  export declare function activity({ activityID }: ActivitiesParamsType): string;
13
+ interface WXShareParamsType {
14
+ link: string;
15
+ title: string;
16
+ desc: string;
17
+ imgUrl: string;
18
+ }
19
+ export declare function wxShare({ link, title, desc, imgUrl }: WXShareParamsType): string;
13
20
  /************** www End ******************************************************/
14
21
  /************** console Start ******************************************************/
15
22
  interface DashboardParamsType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.183",
3
+ "version": "0.1.184",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -26,6 +26,17 @@ export function activity({ activityID }: ActivitiesParamsType) {
26
26
  return `/activity/${activityID}`;
27
27
  }
28
28
 
29
+ interface WXShareParamsType {
30
+ link: string;
31
+ title: string;
32
+ desc: string;
33
+ imgUrl: string;
34
+ }
35
+
36
+ export function wxShare({ link, title, desc, imgUrl }: WXShareParamsType) {
37
+ return `/wx-share/index.html#title=${title}&desc=${desc}&link=${link}&imgUrl=${imgUrl}`;
38
+ }
39
+
29
40
  /************** www End ******************************************************/
30
41
 
31
42
  /************** console Start ******************************************************/