UNPKG

@atlaskit/analytics-next

Version:

React components, HOCs and hooks to assist with tracking user activity with React components

7 lines (6 loc) 501 B
import type { AnalyticsEventPayload } from './events/AnalyticsEvent'; import type UIAnalyticsEvent from './events/UIAnalyticsEvent'; export type CreateUIAnalyticsEvent = (payload: AnalyticsEventPayload) => UIAnalyticsEvent; export type AnalyticsEventCreator = (create: CreateUIAnalyticsEvent, props: Record<string, any>) => UIAnalyticsEvent | undefined; export type CreateEventMapValue = AnalyticsEventPayload | AnalyticsEventCreator; export type CreateEventMap = Record<string, CreateEventMapValue>;