@wox-launcher/wox-plugin 0.0.36 → 0.0.38

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 +5 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3,6 +3,10 @@ export interface Plugin {
3
3
  query: (query: Query) => Promise<Result[]>;
4
4
  }
5
5
  export interface Query {
6
+ /**
7
+ * Type of a query.
8
+ */
9
+ Type: "text" | "file";
6
10
  /**
7
11
  * Raw query, this includes trigger keyword if it has
8
12
  * We didn't recommend use this property directly. You should always use Search property.
@@ -72,5 +76,5 @@ export type WoxPreviewType = "markdown" | "text" | "image";
72
76
  export interface WoxPreview {
73
77
  PreviewType: WoxPreviewType;
74
78
  PreviewData: string;
75
- PreviewProperties: [string: string];
79
+ PreviewProperties: Record<string, string>;
76
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",