react-i18next 11.16.6 → 11.16.7

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.7
2
+
3
+ - types: Added objects explicitly to Trans children [1486](https://github.com/i18next/react-i18next/pull/1486)
4
+
1
5
  ### 11.16.6
2
6
 
3
7
  - fix: warn just once 'i18n.languages were undefined or empty' and return true, like before
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.16.6",
3
+ "version": "11.16.7",
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",
@@ -85,7 +85,7 @@
85
85
  "rollup-plugin-replace": "^2.1.0",
86
86
  "rollup-plugin-terser": "^5.1.1",
87
87
  "sinon": "^7.2.3",
88
- "tslint": "^5.20.1",
88
+ "tslint": "^6.1.3",
89
89
  "typescript": "4.6.2",
90
90
  "yargs": "^13.3.0"
91
91
  },
package/ts4.1/index.d.ts CHANGED
@@ -228,7 +228,6 @@ 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
- // tslint:disable-next-line:no-null-undefined-union
232
231
  TDefaultResult extends TFunctionResult | React.ReactNode = string,
233
232
  TInterpolationMap extends object = StringMap
234
233
  >(
@@ -237,7 +236,6 @@ export interface TFunction<N extends Namespace = DefaultNamespace, TKPrefix = un
237
236
  ): TFuncReturn<N, TKeys, TDefaultResult, TKPrefix>;
238
237
  <
239
238
  TKeys extends TFuncKey<N, TKPrefix> | TemplateStringsArray extends infer A ? A : never,
240
- // tslint:disable-next-line:no-null-undefined-union
241
239
  TDefaultResult extends TFunctionResult | React.ReactNode = string,
242
240
  TInterpolationMap extends object = StringMap
243
241
  >(
@@ -253,7 +251,7 @@ export type TransProps<
253
251
  TKPrefix = undefined,
254
252
  E = React.HTMLProps<HTMLDivElement>
255
253
  > = E & {
256
- children?: React.ReactNode;
254
+ children?: React.ReactNode | Record<string, unknown>;
257
255
  components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
258
256
  count?: number;
259
257
  context?: string;
package/tslint.json CHANGED
@@ -3,6 +3,7 @@
3
3
  "extends": "dtslint/dtslint.json",
4
4
  "rules": {
5
5
  "array-type": [true, "array"],
6
+ "no-null-undefined-union": false,
6
7
  "no-empty-interface": false,
7
8
  "no-redundant-jsdoc": false,
8
9
  "no-unnecessary-generics": false,