@forklaunch/core 0.8.5 → 0.8.7

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.
@@ -2,19 +2,10 @@
2
2
  * Generic interface for a controller that wraps a service.
3
3
  *
4
4
  * @template Service - The service type that this controller wraps
5
- * @template BaseRequest - The base request type (typically Express.Request)
6
- * @template BaseResponse - The base response type (typically Express.Response)
7
- * @template NextFunction - The next function type (typically Express.NextFunction)
8
- * @template ParsedQs - The parsed query string type
9
5
  *
10
6
  */
11
- type Controller<Service, BaseRequest, BaseResponse, NextFunction, ParsedQs> = {
7
+ type Controller<Service> = {
12
8
  [K in keyof Service]: unknown;
13
- } & {
14
- readonly __request?: BaseRequest;
15
- readonly __response?: BaseResponse;
16
- readonly __next?: NextFunction;
17
- readonly __qs?: ParsedQs;
18
9
  } & {
19
10
  [K: string]: unknown;
20
11
  };
@@ -2,19 +2,10 @@
2
2
  * Generic interface for a controller that wraps a service.
3
3
  *
4
4
  * @template Service - The service type that this controller wraps
5
- * @template BaseRequest - The base request type (typically Express.Request)
6
- * @template BaseResponse - The base response type (typically Express.Response)
7
- * @template NextFunction - The next function type (typically Express.NextFunction)
8
- * @template ParsedQs - The parsed query string type
9
5
  *
10
6
  */
11
- type Controller<Service, BaseRequest, BaseResponse, NextFunction, ParsedQs> = {
7
+ type Controller<Service> = {
12
8
  [K in keyof Service]: unknown;
13
- } & {
14
- readonly __request?: BaseRequest;
15
- readonly __response?: BaseResponse;
16
- readonly __next?: NextFunction;
17
- readonly __qs?: ParsedQs;
18
9
  } & {
19
10
  [K: string]: unknown;
20
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/core",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "forklaunch-js core package. Contains useful building blocks.",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -96,8 +96,8 @@
96
96
  "pino-pretty": "^13.0.0",
97
97
  "redis": "^5.1.1",
98
98
  "uuid": "^11.1.0",
99
- "@forklaunch/common": "0.3.4",
100
- "@forklaunch/validator": "0.6.4"
99
+ "@forklaunch/common": "0.3.5",
100
+ "@forklaunch/validator": "0.6.5"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@eslint/js": "^9.28.0",
@@ -106,7 +106,7 @@
106
106
  "@types/jest": "^29.5.14",
107
107
  "@types/qs": "^6.14.0",
108
108
  "@types/uuid": "^10.0.0",
109
- "@typescript/native-preview": "7.0.0-dev.20250531.1",
109
+ "@typescript/native-preview": "7.0.0-dev.20250601.1",
110
110
  "globals": "^16.2.0",
111
111
  "jest": "^29.7.0",
112
112
  "prettier": "^3.5.3",