@wox-launcher/wox-plugin 0.0.39 → 0.0.41

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 +13 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ export interface Result {
32
32
  Icon: WoxImage;
33
33
  Preview?: WoxPreview;
34
34
  Score?: number;
35
- Action: () => Promise<void>;
35
+ Actions: ResultAction[];
36
36
  }
37
37
  export interface ResultAction {
38
38
  /**
@@ -79,6 +79,18 @@ export interface PublicAPI {
79
79
  * Get translation of current language
80
80
  */
81
81
  GetTranslation: (key: string) => Promise<string>;
82
+ /**
83
+ * Get customized setting
84
+ */
85
+ GetSetting: (key: string) => Promise<string>;
86
+ /**
87
+ * Save customized setting
88
+ */
89
+ SaveSetting: (key: string, value: string) => Promise<void>;
90
+ /**
91
+ * Register setting changed callback
92
+ */
93
+ OnSettingChanged: (callback: (key: string, value: string) => void) => Promise<void>;
82
94
  }
83
95
  export type WoxImageType = "absolute" | "relative" | "base64" | "svg" | "url";
84
96
  export interface WoxImage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",