@tinywork/glass 1.0.4 → 1.0.6

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/package.json +1 -1
  2. package/src/index.ts +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -199,7 +199,8 @@ declare global {
199
199
  | "version"
200
200
  | "plan"
201
201
  | "case"
202
- | "association";
202
+ | "association"
203
+ | "unknow";
203
204
 
204
205
  type ContextMenuParams =
205
206
  | { type: "log"; data: NetLog }
@@ -210,7 +211,8 @@ declare global {
210
211
  | { type: "version"; data: Version }
211
212
  | { type: "plan"; data: Plan }
212
213
  | { type: "case"; data: Case }
213
- | { type: "association"; data: Association };
214
+ | { type: "association"; data: Association }
215
+ | { type: "unknow" };
214
216
 
215
217
  type SyncDataType =
216
218
  | "group"
@@ -356,6 +358,7 @@ declare global {
356
358
  /** 右键请求日志 */
357
359
  onContextMenu?: IGlassExtensionEvent<{
358
360
  params: ContextMenuParams;
361
+ menus?: MenuItem[];
359
362
  }>;
360
363
 
361
364
  onRuleDefault?: IGlassExtensionEvent<{