react-i18next 11.16.10 → 11.16.11

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.16.11
2
+
3
+ - types: fix Translation component types regression [1511](https://github.com/i18next/react-i18next/pull/1511)
4
+
1
5
  ### 11.16.10
2
6
 
3
7
  - types: translation component types [1509](https://github.com/i18next/react-i18next/pull/1509)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.16.10",
3
+ "version": "11.16.11",
4
4
  "description": "Internationalization for react done right. Using the i18next i18n ecosystem.",
5
5
  "main": "dist/commonjs/index.js",
6
6
  "types": "./index.d.ts",
package/ts4.1/index.d.ts CHANGED
@@ -368,7 +368,10 @@ export interface I18nextProviderProps {
368
368
  export const I18nextProvider: React.FunctionComponent<I18nextProviderProps>;
369
369
  export const I18nContext: React.Context<{ i18n: i18n }>;
370
370
 
371
- export interface TranslationProps<N extends Namespace = DefaultNamespace, TKPrefix> {
371
+ export interface TranslationProps<
372
+ N extends Namespace = DefaultNamespace,
373
+ TKPrefix extends KeyPrefix<N> = undefined
374
+ > {
372
375
  children: (
373
376
  t: TFunction<N, TKPrefix>,
374
377
  options: {