Closed Andrew-Tierno closed 2 months ago
Thank you for the suggestion! I made the change and released v2.0.8
For future PRs, you can submit just the changes to index.ts
. The other files all get updated as part of the NPM release process I run.
Cheers!
Done so that InitOptions\<T> can accept the type for its generic to properly define the init options dictionary in a typesafe manner.
Similar type exports are available in other i18next plugins like i18next-fs-backend and i18next-browser-languageDetector.