Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference to new typescript doc #140

Merged
merged 1 commit into from
Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions latest/typescript.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TypeScript

{% hint style="warning" %}
We recently moved all type enhancements described here to `i18next`, so if you are relying on `i18next@v22.0.0` and `react-i18next@v12.0.0`, please ignore this section and follow the instructions [here](https://www.i18next.com/overview/typescript).
{% endhint %}

react-i18next has embedded type definitions. If your project is relying on **TypeScript 4.1+**, and you want to enhance IDE Experience and prevent errors (such as type coercion), you should follow the instructions below in order to get the `t` function fully-type safe (`keys` and `return` type).

{% hint style="info" %}
Expand Down