react-i18next 11.2.3 → 11.2.4

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.2.4
2
+
3
+ - typescript: Extend withTranslation tests to include optional props [1009](https://github.com/i18next/react-i18next/pull/1009)
4
+
1
5
  ### 11.2.3
2
6
 
3
7
  - Store should be initialized after useSSR [1008](https://github.com/i18next/react-i18next/pull/1008)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.2.3",
3
+ "version": "11.2.4",
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",
package/src/index.d.ts CHANGED
@@ -79,6 +79,12 @@ export interface WithTranslation extends WithT {
79
79
  i18n: i18n;
80
80
  tReady: boolean;
81
81
  }
82
+
83
+ export interface WithTranslationProps {
84
+ i18n?: i18n;
85
+ useSuspense?: boolean;
86
+ }
87
+
82
88
  export function withTranslation(
83
89
  ns?: Namespace,
84
90
  options?: {
@@ -86,7 +92,7 @@ export function withTranslation(
86
92
  },
87
93
  ): <P extends WithTranslation>(
88
94
  component: React.ComponentType<P>,
89
- ) => React.ComponentType<Omit<P, keyof WithTranslation>>;
95
+ ) => React.ComponentType<Omit<P, keyof WithTranslation> & WithTranslationProps>;
90
96
 
91
97
  export interface I18nextProviderProps {
92
98
  i18n: i18n;