We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baad6a2 commit 38cf8c9Copy full SHA for 38cf8c9
packages/express/index.d.ts
@@ -1,4 +1,4 @@
1
-import { Application as FeathersApplication } from '@feathersjs/feathers';
+import { Application as FeathersApplication, Params as FeathersParams, HookContext } from '@feathersjs/feathers';
2
import express from 'express';
3
4
declare const feathersExpress: FeathersExpress;
@@ -36,3 +36,14 @@ interface FeathersExpress extends Express {
36
declare namespace feathersExpress {
37
type Application<T = any> = express.Express & FeathersApplication<T>;
38
}
39
+
40
+declare module 'express-serve-static-core' {
41
+ interface Request {
42
+ feathers?: Partial<FeathersParams>;
43
+ }
44
45
+ interface Response {
46
+ data?: any;
47
+ hook?: HookContext;
48
49
+}
0 commit comments