Skip to content

Commit

Permalink
Update typings to export I18NextRequest instead of extending global e…
Browse files Browse the repository at this point in the history
…xpress Request
  • Loading branch information
nicolasigot committed Apr 17, 2020
1 parent 2e5386f commit 4e410eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare module 'i18next-express-middleware' {
type IgnoreRoutesFunction = (req: express.Request, res: express.Response, options: HandleOptions, i18next: I18next) => boolean;
type App = express.Application | express.Router;

type I18NextRequest = i18next.Request & {
type I18NextRequest = express.Request & {
language: string;
languages: string[];
i18n:i18next.i18n;
Expand Down

0 comments on commit 4e410eb

Please sign in to comment.