gg-express 1.0.69 → 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.
@@ -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}`, options: {
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}`, options: {
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}`, options: {
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}`, options: {
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.69",
3
+ "version": "1.0.70",
4
4
  "description": "",
5
5
  "main": "dist/GGExpress.js",
6
6
  "scripts": {
package/src/GGExpress.ts CHANGED
@@ -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