@scaleway/use-analytics
Version:
A small hook to handle events analytics
12 lines (11 loc) • 531 B
TypeScript
import type { RudderAnalytics } from '@rudderstack/analytics-js';
import type { Analytics as SegmentAnalytics } from '@segment/analytics-next';
export type JQueryShim<TElement = HTMLElement> = {
toArray(): TElement[];
};
export type TrackLink = SegmentAnalytics['trackLink'];
/**
* @deprecated
* this function is a wrapper of a Track to facilitate the migration from segment to rudderstack
*/
export declare const trackLink: (analytics: RudderAnalytics) => (...args: Parameters<SegmentAnalytics["trackLink"]>) => undefined;