react-i18next 11.14.2 → 11.14.3

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.14.3
2
+
3
+ - types: remove undefined from conditional type [1410](https://github.com/i18next/react-i18next/pull/1410)
4
+
1
5
  ### 11.14.2
2
6
 
3
7
  - Add type-safe support to deep keyPrefix [1403](https://github.com/i18next/react-i18next/pull/1403)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.14.2",
3
+ "version": "11.14.3",
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-terser": "^5.1.1",
86
86
  "sinon": "^7.2.3",
87
87
  "tslint": "^5.20.1",
88
- "typescript": "^4.3.2",
88
+ "typescript": "^4.5.2",
89
89
  "yargs": "^13.3.0"
90
90
  },
91
91
  "peerDependencies": {
package/ts4.1/index.d.ts CHANGED
@@ -184,9 +184,9 @@ type NormalizeWithKeyPrefix<
184
184
  : Normalize<T[K]>
185
185
  : never;
186
186
 
187
- type KeyPrefix<N extends Namespace> = N extends keyof DefaultResources
188
- ? Normalize<DefaultResources[N]> | undefined
189
- : string | undefined;
187
+ type KeyPrefix<N extends Namespace> =
188
+ | (N extends keyof DefaultResources ? Normalize<DefaultResources[N]> : string)
189
+ | undefined;
190
190
 
191
191
  export type TFuncKey<
192
192
  N extends Namespace = DefaultNamespace,