@trackunit/react-core-hooks 0.2.192-alpha-05e60997159.0 → 0.2.192
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/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BaseEvent, Event, IAnalyticsContext
|
|
2
|
+
import { BaseEvent, Event, IAnalyticsContext } from "@trackunit/react-core-contexts-api";
|
|
3
3
|
export declare const AnalyticsContext: import("react").Context<IAnalyticsContext<{}> | null>;
|
|
4
4
|
export declare const AnalyticsContextProvider: import("react").Provider<IAnalyticsContext<{}> | null>;
|
|
5
5
|
/**
|
|
@@ -18,4 +18,4 @@ export declare const AnalyticsContextProvider: import("react").Provider<IAnalyti
|
|
|
18
18
|
* logEvent("Login", { loginPage: "New Manager" });
|
|
19
19
|
* @see {@link IAnalyticsContext}
|
|
20
20
|
*/
|
|
21
|
-
export declare const useAnalytics: <T extends Record<string, Event<BaseEvent |
|
|
21
|
+
export declare const useAnalytics: <T extends Record<string, Event<BaseEvent | import("@trackunit/react-core-contexts-api").AdditionalProperties>>>(type: T) => IAnalyticsContext<T>;
|