@wox-launcher/wox-plugin 0.0.17 → 0.0.19
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 +8 -1
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface Result {
|
|
|
25
25
|
Id?: string;
|
|
26
26
|
Title: string;
|
|
27
27
|
Description?: string;
|
|
28
|
-
|
|
28
|
+
Icon: WoxImage;
|
|
29
29
|
Score?: number;
|
|
30
30
|
Action: () => Promise<boolean>;
|
|
31
31
|
}
|
|
@@ -63,3 +63,10 @@ export interface WoxImage {
|
|
|
63
63
|
ImageType: WoxImageType;
|
|
64
64
|
ImageData: string;
|
|
65
65
|
}
|
|
66
|
+
export declare namespace WoxImage {
|
|
67
|
+
function FromAbsolutePath(path: string): WoxImage;
|
|
68
|
+
function FromRelativeToPluginPath(path: string): WoxImage;
|
|
69
|
+
function FromSvg(svg: string): WoxImage;
|
|
70
|
+
function FromBase64(base64: string): WoxImage;
|
|
71
|
+
function FromRemote(url: string): WoxImage;
|
|
72
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WoxImage = void 0;
|
|
3
4
|
var WoxImage;
|
|
4
5
|
(function (WoxImage) {
|
|
5
6
|
function FromAbsolutePath(path) {
|
|
@@ -37,4 +38,4 @@ var WoxImage;
|
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
WoxImage.FromRemote = FromRemote;
|
|
40
|
-
})(WoxImage || (WoxImage = {}));
|
|
41
|
+
})(WoxImage || (exports.WoxImage = WoxImage = {}));
|