-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using context with Typescript doesn't seem to resolve types properly #1617
Comments
If I also add the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Was this resolved actually? I still get the same error: Code throws: working with: |
please provide a minimal reproducible example, not just code snippets... in case you can reproduce this, please open a new issue |
馃悰 Bug Report
I'm getting typescript error when I use context with my translations.
To Reproduce
A minimal reproducible example.
The interesting thing is that the code runs correctly (at least in the example Stackblitz). In the code there's a typescript error same as in my project.
Expected behaviour
I've defined
i18next.d.ts
as instructed by the docs, initialized the i18next but I can't seem to make the context work as per documentation. Or at least the documentation is missing more information about Typescript usage.Your Environment
The text was updated successfully, but these errors were encountered: