i18next / i18next-express-middleware

[deprecated] can be replaced with i18next-http-middleware
https://github.com/i18next/i18next-http-middleware
MIT License
207 stars 55 forks source link

update LanguageDetector (fix type error since i18next v17.0.8) #190

Closed shimataro closed 5 years ago

shimataro commented 5 years ago

fixed type error:

// error TS2345: Argument of type 'typeof LanguageDetector' is not assignable to parameter of type 'Module | ThirdPartyModule[] | Newable<ThirdPartyModule>[] | Newable<Module>'.
//   Type 'typeof LanguageDetector' is not assignable to type 'Newable<Module>'.
//     Property 'type' is missing in type 'LanguageDetector' but required in type 'Module'.
i18next.use(middleware.LanguageDetector);
jamuhl commented 5 years ago

should be pubished in i18next-express-middleware@1.8.1