@wox-launcher/wox-plugin 0.0.51 → 0.0.53
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
|
@@ -52,10 +52,10 @@ export interface Result {
|
|
|
52
52
|
Icon: WoxImage;
|
|
53
53
|
Preview?: WoxPreview;
|
|
54
54
|
Score?: number;
|
|
55
|
-
ContextData
|
|
56
|
-
Actions
|
|
57
|
-
RefreshInterval
|
|
58
|
-
OnRefresh
|
|
55
|
+
ContextData?: string;
|
|
56
|
+
Actions?: ResultAction[];
|
|
57
|
+
RefreshInterval?: number;
|
|
58
|
+
OnRefresh?: (current: RefreshableResult) => Promise<RefreshableResult>;
|
|
59
59
|
}
|
|
60
60
|
export interface RefreshableResult {
|
|
61
61
|
Title: string;
|
|
@@ -71,7 +71,7 @@ export interface ResultAction {
|
|
|
71
71
|
*/
|
|
72
72
|
Id?: string;
|
|
73
73
|
Name: string;
|
|
74
|
-
Icon
|
|
74
|
+
Icon?: WoxImage;
|
|
75
75
|
/**
|
|
76
76
|
* If true, Wox will use this action as default action. There can be only one default action in results
|
|
77
77
|
* This can be omitted, if you don't set it, Wox will use the first action as default action
|
|
@@ -109,9 +109,9 @@ export interface PublicAPI {
|
|
|
109
109
|
*/
|
|
110
110
|
ShowApp: () => Promise<void>;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* Notify message
|
|
113
113
|
*/
|
|
114
|
-
|
|
114
|
+
Notify: (title: string, description?: string, iconPath?: string) => Promise<void>;
|
|
115
115
|
/**
|
|
116
116
|
* Write log
|
|
117
117
|
*/
|