gregfenton / i18next-node-firestore-backend

4 stars 3 forks source link

Exports type I18NFirestoreBackendOpts #2

Closed Andrew-Tierno closed 2 months ago

Andrew-Tierno commented 2 months ago

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.

gregfenton commented 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!