Closed nicolasigot closed 4 years ago
Hello @isaachinman , @jamuhl ,
As discussed within my previous PR, I created this one with updated typings. https://github.com/i18next/i18next-express-middleware/pull/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
Wondering if this should be released on a major, as it could possibly break TS builds?
published in i18next-express-middleware@2.0.0
Hello @isaachinman , @jamuhl ,
As discussed within my previous PR, I created this one with updated typings. https://github.com/i18next/i18next-express-middleware/pull/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