gg-express 1.0.68 → 1.0.70
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.
- package/dist/GGExpress.d.ts +4 -4
- package/package.json +2 -2
- package/src/GGExpress.ts +6 -6
package/dist/GGExpress.d.ts
CHANGED
|
@@ -67,19 +67,19 @@ export default class GGExpress<appName extends string> {
|
|
|
67
67
|
appName: string;
|
|
68
68
|
constructor(app: Express.Express, appName: appName, outputPath: string[]);
|
|
69
69
|
private rootMethod;
|
|
70
|
-
get<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}
|
|
70
|
+
get<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[], options: {
|
|
71
71
|
requireParams: M;
|
|
72
72
|
responseStructure: R;
|
|
73
73
|
}, ...middlewares: Array<(req: MyRequest<M["dataType"], T, K, P, J, L>, res: MyResponse<R["dataType"], RS, KR, PP, J>, next: NextFunction) => any>): Express.Express;
|
|
74
|
-
post<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}
|
|
74
|
+
post<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[], options: {
|
|
75
75
|
requireParams: M;
|
|
76
76
|
responseStructure: R;
|
|
77
77
|
}, ...middlewares: Array<(req: MyRequest<M["dataType"], T, K, P, J, L>, res: MyResponse<R["dataType"], RS, KR, PP, J>, next: NextFunction) => any>): Express.Express;
|
|
78
|
-
put<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}
|
|
78
|
+
put<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[], options: {
|
|
79
79
|
requireParams: M;
|
|
80
80
|
responseStructure: R;
|
|
81
81
|
}, ...middlewares: Array<(req: MyRequest<M["dataType"], T, K, P, J, L>, res: MyResponse<R["dataType"], RS, KR, PP, J>, next: NextFunction) => any>): Express.Express;
|
|
82
|
-
delete<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}
|
|
82
|
+
delete<M extends requireParamsStructure, T extends M["structure"], K extends keyof T, R extends responseStructure, RS extends R["structure"], KR extends keyof RS, P extends M["parameter"], PP extends R["parameter"], J extends M["isPartialStructure"], L extends M["isPartialParameter"]>(url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[], options: {
|
|
83
83
|
requireParams: M;
|
|
84
84
|
responseStructure: R;
|
|
85
85
|
}, ...middlewares: Array<(req: MyRequest<M["dataType"], T, K, P, J, L>, res: MyResponse<R["dataType"], RS, KR, PP, J>, next: NextFunction) => any>): Express.Express;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gg-express",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/GGExpress.js",
|
|
6
6
|
"scripts": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/express": "^5.0.0",
|
|
27
|
-
"typescript": "^5.
|
|
27
|
+
"typescript": "^5.8.3"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [
|
|
30
30
|
"express",
|
package/src/GGExpress.ts
CHANGED
|
@@ -106,7 +106,7 @@ type MyResponse<
|
|
|
106
106
|
|
|
107
107
|
const myExpressRouteList: {
|
|
108
108
|
method: "get" | "post" | "put" | "delete"
|
|
109
|
-
url: string
|
|
109
|
+
url: string | string[]
|
|
110
110
|
requireParams: requireParamsStructure
|
|
111
111
|
responseStructure: responseStructure
|
|
112
112
|
}[] = []
|
|
@@ -134,7 +134,7 @@ export default class GGExpress<appName extends string> {
|
|
|
134
134
|
L extends M["isPartialParameter"]
|
|
135
135
|
>(
|
|
136
136
|
method: "get" | "post" | "put" | "delete",
|
|
137
|
-
url: string,
|
|
137
|
+
url: string | string[],
|
|
138
138
|
options: {
|
|
139
139
|
requireParams: M
|
|
140
140
|
responseStructure: R
|
|
@@ -178,7 +178,7 @@ export default class GGExpress<appName extends string> {
|
|
|
178
178
|
J extends M["isPartialStructure"],
|
|
179
179
|
L extends M["isPartialParameter"]
|
|
180
180
|
>(
|
|
181
|
-
url: `/api/${appName}/${string}
|
|
181
|
+
url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[],
|
|
182
182
|
options: {
|
|
183
183
|
requireParams: M
|
|
184
184
|
responseStructure: R
|
|
@@ -206,7 +206,7 @@ export default class GGExpress<appName extends string> {
|
|
|
206
206
|
J extends M["isPartialStructure"],
|
|
207
207
|
L extends M["isPartialParameter"]
|
|
208
208
|
>(
|
|
209
|
-
url: `/api/${appName}/${string}
|
|
209
|
+
url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[],
|
|
210
210
|
options: {
|
|
211
211
|
requireParams: M
|
|
212
212
|
responseStructure: R
|
|
@@ -233,7 +233,7 @@ export default class GGExpress<appName extends string> {
|
|
|
233
233
|
J extends M["isPartialStructure"],
|
|
234
234
|
L extends M["isPartialParameter"]
|
|
235
235
|
>(
|
|
236
|
-
url: `/api/${appName}/${string}
|
|
236
|
+
url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[],
|
|
237
237
|
options: {
|
|
238
238
|
requireParams: M
|
|
239
239
|
responseStructure: R
|
|
@@ -260,7 +260,7 @@ export default class GGExpress<appName extends string> {
|
|
|
260
260
|
J extends M["isPartialStructure"],
|
|
261
261
|
L extends M["isPartialParameter"]
|
|
262
262
|
>(
|
|
263
|
-
url: `/api/${appName}/${string}
|
|
263
|
+
url: `/api/${appName}/${string}` | `/api/${appName}/${string}`[],
|
|
264
264
|
options: {
|
|
265
265
|
requireParams: M
|
|
266
266
|
responseStructure: R
|