@forklaunch/core 0.8.5 → 0.8.6

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.6",
4
4
  "description": "forklaunch-js core package. Contains useful building blocks.",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {