@wox-launcher/wox-plugin 0.0.40 → 0.0.42

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