gg-express 1.0.66 → 1.0.69
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 +1 -1
- package/package.json +2 -2
- package/src/GGExpress.ts +3 -3
package/dist/GGExpress.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ type singleOrArrayObject<DT extends requireParamsStructure["dataType"], T extend
|
|
|
50
50
|
};
|
|
51
51
|
type MyRequest<DT extends requireParamsStructure["dataType"], T extends requireParamsStructure["structure"], K extends keyof T, P extends requireParamsStructure["parameter"], J extends requireParamsStructure["isPartialStructure"], L extends requireParamsStructure["isPartialParameter"]> = Request<{}, {}, singleOrArrayObject<DT, T, K, P, J, L>, singleOrArrayObject<DT, T, K, P, J, L>, {}>;
|
|
52
52
|
type MyResponse<DT extends responseStructure["dataType"], T extends responseStructure["structure"], K extends keyof T, P extends responseStructure["parameter"], J extends requireParamsStructure["isPartialStructure"]> = Response<{
|
|
53
|
-
status: "SUCCESS" | "ERROR";
|
|
53
|
+
status: "SUCCESS" | "ERROR" | "SERVER_ERROR";
|
|
54
54
|
message: string;
|
|
55
55
|
parameter: {
|
|
56
56
|
[Key in keyof P]: numberOrString<P[Key]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gg-express",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.69",
|
|
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
|
@@ -96,7 +96,7 @@ type MyResponse<
|
|
|
96
96
|
P extends responseStructure["parameter"],
|
|
97
97
|
J extends requireParamsStructure["isPartialStructure"]
|
|
98
98
|
> = Response<{
|
|
99
|
-
status: "SUCCESS" | "ERROR"
|
|
99
|
+
status: "SUCCESS" | "ERROR" | "SERVER_ERROR"
|
|
100
100
|
message: string
|
|
101
101
|
parameter: { [Key in keyof P]: numberOrString<P[Key]> }
|
|
102
102
|
data: DT extends "arrayObject"
|
|
@@ -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
|