gt-react 10.6.0 → 10.6.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,5 +1,11 @@
1
1
  # gt-react
2
2
 
3
+ ## 10.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#673](https://github.com/generaltranslation/gt/pull/673) [`250d8d2`](https://github.com/generaltranslation/gt/commit/250d8d275871cf2915fe51d633691b8ae546d9b2) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: return type for t.obj
8
+
3
9
  ## 10.6.0
4
10
 
5
11
  ### Minor Changes
package/dist/client.d.ts CHANGED
@@ -358,7 +358,7 @@ declare function useDefaultLocale(): string;
358
358
  * console.log(t('hello')); // Translates item 'hello'
359
359
  */
360
360
  declare function useTranslations(id?: string): ((id: string, options?: Record<string, any>) => string) & {
361
- obj: (id: string, options?: Record<string, any>) => Dictionary | DictionaryEntry | string | undefined;
361
+ obj: (id: string, options?: Record<string, any>) => any | undefined;
362
362
  };
363
363
 
364
364
  /**
@@ -1,4 +1,3 @@
1
- import { Dictionary, DictionaryEntry } from '../../internal';
2
1
  /**
3
2
  * Gets the dictionary access function `t` provided by `<GTProvider>`.
4
3
  *
@@ -13,6 +12,6 @@ import { Dictionary, DictionaryEntry } from '../../internal';
13
12
  * console.log(t('hello')); // Translates item 'hello'
14
13
  */
15
14
  export default function useTranslations(id?: string): ((id: string, options?: Record<string, any>) => string) & {
16
- obj: (id: string, options?: Record<string, any>) => Dictionary | DictionaryEntry | string | undefined;
15
+ obj: (id: string, options?: Record<string, any>) => any | undefined;
17
16
  };
18
17
  //# sourceMappingURL=useTranslations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useTranslations.d.ts","sourceRoot":"","sources":["../../../src/translation/hooks/useTranslations.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAG7D;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CACrD,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC1B,MAAM,CAAC,GAAG;IACb,GAAG,EAAE,CACH,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC1B,UAAU,GAAG,eAAe,GAAG,MAAM,GAAG,SAAS,CAAC;CACxD,CAmDA"}
1
+ {"version":3,"file":"useTranslations.d.ts","sourceRoot":"","sources":["../../../src/translation/hooks/useTranslations.tsx"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,CACrD,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC1B,MAAM,CAAC,GAAG;IACb,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,GAAG,GAAG,SAAS,CAAC;CACrE,CAgDA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "A React library for automatic internationalization.",
5
5
  "main": "./dist/index.cjs.min.cjs",
6
6
  "module": "./dist/index.esm.min.mjs",