@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.
- package/dist/index.d.ts +7 -7
- 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
|
}
|