@forklaunch/core 0.4.0 → 0.5.1

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.
@@ -1,5 +1,10 @@
1
- type Controller<Service> = {
1
+ type Controller<Service, BaseRequest, BaseResponse, NextFunction, ParsedQs> = {
2
2
  [K in keyof Service]: unknown;
3
+ } & {
4
+ readonly __request?: BaseRequest;
5
+ readonly __response?: BaseResponse;
6
+ readonly __next?: NextFunction;
7
+ readonly __qs?: ParsedQs;
3
8
  };
4
9
 
5
10
  export type { Controller };
@@ -1,5 +1,10 @@
1
- type Controller<Service> = {
1
+ type Controller<Service, BaseRequest, BaseResponse, NextFunction, ParsedQs> = {
2
2
  [K in keyof Service]: unknown;
3
+ } & {
4
+ readonly __request?: BaseRequest;
5
+ readonly __response?: BaseResponse;
6
+ readonly __next?: NextFunction;
7
+ readonly __qs?: ParsedQs;
3
8
  };
4
9
 
5
10
  export type { Controller };