@wox-launcher/wox-plugin 0.0.13 → 0.0.15

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 (2) hide show
  1. package/dist/index.d.ts +7 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export interface Query {
22
22
  Search: string;
23
23
  }
24
24
  export interface Result {
25
+ Id?: string;
25
26
  Title: string;
26
27
  Description?: string;
27
28
  IcoPath: string;
@@ -35,25 +36,25 @@ export interface PublicAPI {
35
36
  /**
36
37
  * Change Wox query
37
38
  */
38
- ChangeQuery: (query: string) => void;
39
+ ChangeQuery: (query: string) => Promise<void>;
39
40
  /**
40
41
  * Hide Wox
41
42
  */
42
- HideApp: () => void;
43
+ HideApp: () => Promise<void>;
43
44
  /**
44
45
  * Show Wox
45
46
  */
46
- ShowApp: () => void;
47
+ ShowApp: () => Promise<void>;
47
48
  /**
48
49
  * Show message box
49
50
  */
50
- ShowMsg: (title: string, description?: string, iconPath?: string) => void;
51
+ ShowMsg: (title: string, description?: string, iconPath?: string) => Promise<void>;
51
52
  /**
52
53
  * Write log
53
54
  */
54
- Log: (msg: string) => void;
55
+ Log: (msg: string) => Promise<void>;
55
56
  /**
56
57
  * Get translation of current language
57
58
  */
58
- GetTranslation: (key: string) => string;
59
+ GetTranslation: (key: string) => Promise<string>;
59
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",