react-i18next
Advanced tools
Comparing version 14.0.8 to 14.1.0
@@ -0,1 +1,5 @@ | ||
### 14.1.0 | ||
- types(`Trans`): add typechecking on context prop [1732](https://github.com/i18next/react-i18next/pull/1732) (might brake if using "internal" `Trans` or `TransProps`) | ||
### 14.0.8 | ||
@@ -2,0 +6,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"14.0.8"} | ||
{"type":"module","version":"14.1.0"} |
{ | ||
"name": "react-i18next", | ||
"version": "14.0.8", | ||
"version": "14.1.0", | ||
"description": "Internationalization for react done right. Using the i18next i18n ecosystem.", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -10,4 +10,5 @@ import type { i18n, ParseKeys, Namespace, TypeOptions, TOptions, TFunction } from 'i18next'; | ||
Ns extends Namespace = _DefaultNamespace, | ||
TOpt extends TOptions = {}, | ||
KPrefix = undefined, | ||
TContext extends string | undefined = undefined, | ||
TOpt extends TOptions & { context?: TContext } = { context: TContext }, | ||
E = React.HTMLProps<HTMLDivElement>, | ||
@@ -18,3 +19,3 @@ > = E & { | ||
count?: number; | ||
context?: string; | ||
context?: TContext; | ||
defaults?: string; | ||
@@ -34,5 +35,6 @@ i18n?: i18n; | ||
Ns extends Namespace = _DefaultNamespace, | ||
TOpt extends TOptions = {}, | ||
KPrefix = undefined, | ||
TContext extends string | undefined = undefined, | ||
TOpt extends TOptions & { context?: TContext } = { context: TContext }, | ||
E = React.HTMLProps<HTMLDivElement>, | ||
>(props: TransProps<Key, Ns, TOpt, KPrefix, E>): React.ReactElement; | ||
>(props: TransProps<Key, Ns, KPrefix, TContext, TOpt, E>): React.ReactElement; |
331405
6275