@tinywork/glass 1.0.4 → 1.0.5

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 +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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 }
@@ -356,6 +357,7 @@ declare global {
356
357
  /** 右键请求日志 */
357
358
  onContextMenu?: IGlassExtensionEvent<{
358
359
  params: ContextMenuParams;
360
+ menus?: MenuItem[];
359
361
  }>;
360
362
 
361
363
  onRuleDefault?: IGlassExtensionEvent<{