DEV Community

loading...

Discussion on: Extend Express's Request Object with Typescript Declaration Merging.

Collapse
mehmetnyarar profile image
Mehmet N Yarar

same here. not only that, testing (jest/ts-jest) also fails unless I do:

declare module 'express' {
  export interface Request {
    i18n: import('i18next').i18n
    language: string
  }
}