@tinywork/glass 1.0.24 → 1.0.25

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/index.d.ts +5 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -76,13 +76,15 @@ declare global {
76
76
  title?: string;
77
77
  };
78
78
 
79
+ type Method = "GET" | "POST" | "PUT" | "DELETE";
80
+
79
81
  type DocSchema = {
80
82
  apiId: string;
81
83
  groupId: string;
82
84
  name: string;
83
85
  desc?: string;
84
86
  pathname?: string;
85
- method?: "GET" | "POST" | "PUT" | "DELETE";
87
+ method?: Method;
86
88
  code?: string; // ts声明
87
89
  modifier?: string; // 最后操作人
88
90
  modifyTime?: string; // 最后操作时间
@@ -167,7 +169,7 @@ declare global {
167
169
  desc?: string;
168
170
  origin: string;
169
171
  pathname: string;
170
- method: "GET" | "POST" | "PUT" | "DELETE";
172
+ method: Method;
171
173
  params?: Record<string, any>;
172
174
  headers?: Record<string, any>;
173
175
  body?: any;
@@ -255,6 +257,7 @@ declare global {
255
257
  target?: ActionTarget;
256
258
  oldValue?: string;
257
259
  newValue?: string;
260
+ regex?: boolean;
258
261
  status?: boolean;
259
262
  updatedAt?: string;
260
263
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [