react-i18next 11.8.7 → 11.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 11.8.8
2
+
3
+ - typescript: Allow `TFuncKey` to be used without specifying the namespace, in the same way TFunction and useTranslation work [1262](https://github.com/i18next/react-i18next/pull/1262)
4
+
1
5
  ### 11.8.7
2
6
 
3
7
  - warning for old wait usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.8.7",
3
+ "version": "11.8.8",
4
4
  "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "src/index.d.ts",
@@ -31,8 +31,8 @@
31
31
  "url": "https://github.com/i18next/react-i18next.git"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.3.1",
35
- "html-parse-stringify2": "2.0.1"
34
+ "@babel/runtime": "^7.13.6",
35
+ "html-parse-stringify2": "^2.0.1"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@babel/cli": "^7.2.3",
@@ -90,7 +90,7 @@ type NormalizeMultiReturn<T, V> = V extends `${infer N}:${infer R}`
90
90
  : never
91
91
  : never;
92
92
 
93
- export type TFuncKey<N, T = Resources> = N extends (keyof T)[]
93
+ export type TFuncKey<N extends Namespace = DefaultNamespace, T = Resources> = N extends (keyof T)[]
94
94
  ? NormalizeMulti<T, N[number]>
95
95
  : N extends keyof T
96
96
  ? Normalize<T[N]>