Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update typings to export I18NextRequest instead of extending global express Request #211

Merged
merged 2 commits into from
Apr 19, 2020

Conversation

nicolasigot
Copy link
Contributor

Hello @isaachinman , @jamuhl ,

As discussed within my previous PR, I created this one with updated typings.
#177

I had to replace in all my code req.t & req.language by (req as I18NextRequest).t and (req as I18NextRequest).language.

You may have people complain about this once merged but I guess this is the direction you would like to take for your typings.

Thanks,
Nicolas

@isaachinman
Copy link

Wondering if this should be released on a major, as it could possibly break TS builds?

@jamuhl jamuhl merged commit a20950b into i18next:master Apr 19, 2020
@jamuhl
Copy link
Member

jamuhl commented Apr 19, 2020

published in i18next-express-middleware@2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants