react-i18next 11.15.0 → 11.15.1

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.15.1
2
+
3
+ - add missing types for shouldUnescape and useTranslation [1429](https://github.com/i18next/react-i18next/pull/1429)
4
+
1
5
  ### 11.15.0
2
6
 
3
7
  - option to unescape html in Trans [1426](https://github.com/i18next/react-i18next/pull/1426)
package/index.d.ts CHANGED
@@ -43,6 +43,7 @@ export interface TransProps<E extends Element = HTMLDivElement>
43
43
  parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null
44
44
  tOptions?: {};
45
45
  values?: {};
46
+ shouldUnescape?: boolean;
46
47
  t?: TFunction;
47
48
  }
48
49
  export function Trans<E extends Element = HTMLDivElement>(props: TransProps<E>): React.ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-i18next",
3
- "version": "11.15.0",
3
+ "version": "11.15.1",
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",
package/ts4.1/index.d.ts CHANGED
@@ -250,6 +250,7 @@ export interface TransProps<
250
250
  parent?: string | React.ComponentType<any> | null; // used in React.createElement if not null
251
251
  tOptions?: {};
252
252
  values?: {};
253
+ shouldUnescape?: boolean;
253
254
  t?: TFunction<N, TKPrefix>;
254
255
  }
255
256
 
@@ -268,7 +269,7 @@ export interface UseTranslationOptions<TKPrefix = undefined> {
268
269
  keyPrefix?: TKPrefix;
269
270
  }
270
271
 
271
- type UseTranslationResponse<N extends Namespace, TKPrefix> = [
272
+ export type UseTranslationResponse<N extends Namespace, TKPrefix = undefined> = [
272
273
  TFunction<N, TKPrefix>,
273
274
  i18n,
274
275
  boolean,