diff --git a/packages/express/index.d.ts b/packages/express/index.d.ts index 871311824e..2ef1d9792a 100644 --- a/packages/express/index.d.ts +++ b/packages/express/index.d.ts @@ -1,4 +1,4 @@ -import { Application as FeathersApplication } from '@feathersjs/feathers'; +import { Application as FeathersApplication, Params as FeathersParams, HookContext } from '@feathersjs/feathers'; import express from 'express'; declare const feathersExpress: FeathersExpress; @@ -36,3 +36,14 @@ interface FeathersExpress extends Express { declare namespace feathersExpress { type Application = express.Express & FeathersApplication; } + +declare module 'express-serve-static-core' { + interface Request { + feathers?: Partial; + } + + interface Response { + data?: any; + hook?: HookContext; + } +}