@wox-launcher/wox-plugin 0.0.14 → 0.0.16

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