react-i18next 11.16.8 → 11.16.9
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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### 11.16.9
|
|
2
|
+
|
|
3
|
+
- types: fix missing generic type for HTMLAttributes [1499](https://github.com/i18next/react-i18next/pull/1499)
|
|
4
|
+
|
|
1
5
|
### 11.16.8
|
|
2
6
|
|
|
3
7
|
- types: fix Trans component to support react 18 types, by introducing allowObjectInHTMLChildren TS option [1492](https://github.com/i18next/react-i18next/pull/1492)
|
package/package.json
CHANGED
package/ts4.1/index.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true
|
|
|
103
103
|
? Record<string, unknown>
|
|
104
104
|
: never;
|
|
105
105
|
declare module 'react' {
|
|
106
|
-
interface HTMLAttributes {
|
|
106
|
+
interface HTMLAttributes<T> {
|
|
107
107
|
children?: ReactNode | ObjectOrNever;
|
|
108
108
|
}
|
|
109
109
|
}
|