@kaito-http/core 2.9.4 → 2.9.5

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.
@@ -23,9 +23,9 @@ export type ServerConfigWithBefore<BeforeAfterContext> = {
23
23
  } | {
24
24
  before?: undefined;
25
25
  };
26
- export type ServerConfig<Context, BeforeAfterContext> = ServerConfigWithBefore<BeforeAfterContext> & {
27
- router: Router<Context, any>;
28
- getContext: GetContext<Context>;
26
+ export type ServerConfig<ContextFrom, BeforeAfterContext> = ServerConfigWithBefore<BeforeAfterContext> & {
27
+ router: Router<ContextFrom, unknown, any>;
28
+ getContext: GetContext<ContextFrom>;
29
29
  rawRoutes?: Partial<Record<KaitoMethod, Array<{
30
30
  path: string;
31
31
  handler: (request: http.IncomingMessage, response: http.ServerResponse) => unknown;
@@ -41,6 +41,6 @@ export type ServerConfig<Context, BeforeAfterContext> = ServerConfigWithBefore<B
41
41
  };
42
42
  export declare function createFMWServer<Context, BeforeAfterContext = null>(config: ServerConfig<Context, BeforeAfterContext>): {
43
43
  readonly server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
44
- readonly fmw: any;
44
+ readonly fmw: import("find-my-way").Instance<import("find-my-way").HTTPVersion.V1>;
45
45
  };
46
46
  export declare function createServer<Context, BeforeAfterContext = null>(config: ServerConfig<Context, BeforeAfterContext>): http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaito-http/core",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "description": "Functional HTTP Framework for TypeScript",
5
5
  "repository": "https://github.com/kaito-http/kaito",
6
6
  "author": "Alistair Smith <hi@alistair.sh>",