@tinywork/glass 1.0.0 → 1.0.1

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 +2 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -68,13 +68,9 @@ export abstract class BrowserWindow {
68
68
  }
69
69
 
70
70
  /** 1-新增,2-修改,3-删除 */
71
- export enum Operation {
72
- ADD = 1,
73
- MODIFY = 2,
74
- DELETE = 3,
75
- }
71
+ export type Operation = 1 | 2 | 3;
76
72
 
77
- export type GlassAction = "file" | "bind" | "unbind" | "check";
73
+ export type GlassAction = "file" | "remove" | "bind" | "unbind" | "check";
78
74
  export type GlassActionParams =
79
75
  | {
80
76
  type: "file";