@wox-launcher/wox-plugin 0.0.46 → 0.0.48
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 +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export interface ResultAction {
|
|
|
51
51
|
*/
|
|
52
52
|
Id?: string;
|
|
53
53
|
Name: string;
|
|
54
|
+
Icon: WoxImage;
|
|
54
55
|
/**
|
|
55
56
|
* If true, Wox will use this action as default action. There can be only one default action in results
|
|
56
57
|
* This can be omitted, if you don't set it, Wox will use the first action as default action
|
|
@@ -95,12 +96,16 @@ export interface PublicAPI {
|
|
|
95
96
|
GetTranslation: (key: string) => Promise<string>;
|
|
96
97
|
/**
|
|
97
98
|
* Get customized setting
|
|
99
|
+
*
|
|
100
|
+
* will try to get platform specific setting first, if not found, will try to get global setting
|
|
98
101
|
*/
|
|
99
102
|
GetSetting: (key: string) => Promise<string>;
|
|
100
103
|
/**
|
|
101
104
|
* Save customized setting
|
|
105
|
+
*
|
|
106
|
+
* @isPlatformSpecific If true, setting will be only saved in current platform. If false, setting will be available in all platforms
|
|
102
107
|
*/
|
|
103
|
-
SaveSetting: (key: string, value: string) => Promise<void>;
|
|
108
|
+
SaveSetting: (key: string, value: string, isPlatformSpecific: boolean) => Promise<void>;
|
|
104
109
|
/**
|
|
105
110
|
* Register setting changed callback
|
|
106
111
|
*/
|