We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623f939 commit c939571Copy full SHA for c939571
packages/react/src/tracking/use-track.ts
@@ -1,4 +1,4 @@
1
-import type { TrackingEventDetails } from '@openfeature/web-sdk';
+import type { Tracking, TrackingEventDetails } from '@openfeature/web-sdk';
2
import { useCallback } from 'react';
3
import { useOpenFeatureClient } from '../provider';
4
@@ -9,7 +9,7 @@ export type Track = {
9
* @param trackingEventName an identifier for the event
10
* @param trackingEventDetails the details of the tracking event
11
*/
12
- track: (trackingEventName: string, trackingEventDetails?: TrackingEventDetails) => void;
+ track: Tracking['track'];
13
};
14
15
/**
0 commit comments