react-i18next 11.16.4 → 11.16.5
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 +4 -0
- package/package.json +1 -1
- package/ts4.1/index.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 11.16.5
|
|
2
|
+
|
|
3
|
+
- types: ReactNode should be prefixed with React [1481](https://github.com/i18next/react-i18next/pull/1481)
|
|
4
|
+
|
|
1
5
|
### 11.16.4
|
|
2
6
|
|
|
3
7
|
- fix type 'TFunctionResult' is not assignable to type 'ReactNode' on React 18 [1480](https://github.com/i18next/react-i18next/pull/1480)
|
package/package.json
CHANGED
package/ts4.1/index.d.ts
CHANGED
|
@@ -228,7 +228,7 @@ export type TFuncReturn<
|
|
|
228
228
|
export interface TFunction<N extends Namespace = DefaultNamespace, TKPrefix = undefined> {
|
|
229
229
|
<
|
|
230
230
|
TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never,
|
|
231
|
-
TDefaultResult extends TFunctionResult | ReactNode = string,
|
|
231
|
+
TDefaultResult extends TFunctionResult | React.ReactNode = string,
|
|
232
232
|
TInterpolationMap extends object = StringMap
|
|
233
233
|
>(
|
|
234
234
|
key: TKeys | TKeys[],
|
|
@@ -236,7 +236,7 @@ export interface TFunction<N extends Namespace = DefaultNamespace, TKPrefix = un
|
|
|
236
236
|
): TFuncReturn<N, TKeys, TDefaultResult, TKPrefix>;
|
|
237
237
|
<
|
|
238
238
|
TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never,
|
|
239
|
-
TDefaultResult extends TFunctionResult | ReactNode = string,
|
|
239
|
+
TDefaultResult extends TFunctionResult | React.ReactNode = string,
|
|
240
240
|
TInterpolationMap extends object = StringMap
|
|
241
241
|
>(
|
|
242
242
|
key: TKeys | TKeys[],
|