i18nextify icon indicating copy to clipboard operation
i18nextify copied to clipboard

Add TypeScript Type Declarations

Open andrii-bodnar opened this issue 9 months ago • 1 comments

🚀 Feature Proposal

Currently, i18nextify lacks official TypeScript type declarations, which makes it harder to use in TypeScript projects. We should add proper type declarations similar to how it's done in the i18next repository.

Motivation

  • No official type declarations are provided
  • Users need to create their own type declarations
  • Type safety is not guaranteed when using the library

Benefits

  1. Better TypeScript integration
  2. Improved developer experience with autocomplete
  3. Catch potential errors at compile time
  4. Better documentation through types

References

andrii-bodnar avatar May 27 '25 07:05 andrii-bodnar

If you're ok with maintaining the typescript support for i18nextify, feel free to open a PR.

adrai avatar May 27 '25 09:05 adrai