@tracktor/shared-module 2.0.0-beta.6 → 2.0.0-beta.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,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v2.0.0-beta.6
4
- - **[chore]** : improvement
3
+ ## v2.0.0-beta.7
4
+ - **[fix]** : fix translateFunction type
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- export interface InjectDependenciesContextProps {
2
+ export interface InjectDependenciesContextProps<T = unknown> {
3
3
  /**
4
4
  * Children
5
5
  */
@@ -25,7 +25,7 @@ export interface InjectDependenciesContextProps {
25
25
  i18next?: any;
26
26
  initReactI18next?: any;
27
27
  languageDetector?: any;
28
- translateFunction?: () => {};
28
+ translateFunction?: T;
29
29
  };
30
30
  reactQuery?: {
31
31
  QueryClientProvider: ({ client, children }: {
@@ -49,7 +49,7 @@ export interface InjectDependenciesContextProps {
49
49
  };
50
50
  };
51
51
  }
52
- export declare const InjectDependenciesContext: import("react").Context<InjectDependenciesContextProps>;
52
+ export declare const InjectDependenciesContext: import("react").Context<InjectDependenciesContextProps<unknown>>;
53
53
  /**
54
54
  * This provider is used to inject major dependencies
55
55
  * @param children
@@ -57,5 +57,5 @@ export declare const InjectDependenciesContext: import("react").Context<InjectDe
57
57
  * @param apiURL
58
58
  * @constructor
59
59
  */
60
- declare const InjectDependenciesProvider: ({ children, apiURL, libraries }: InjectDependenciesContextProps) => import("react/jsx-runtime").JSX.Element;
60
+ declare const InjectDependenciesProvider: <T extends unknown>({ children, apiURL, libraries }: InjectDependenciesContextProps<T>) => import("react/jsx-runtime").JSX.Element;
61
61
  export default InjectDependenciesProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tracktor/shared-module",
3
- "version": "2.0.0-beta.6",
3
+ "version": "2.0.0-beta.7",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "types": "./dist/main.d.ts",