Skip to content

Commit 5315d7a

Browse files
committed
Export analytics correctly
1 parent 143a92e commit 5315d7a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/provider/src/analytics.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Databeat, Event as DatabeatEvent, Auth, isBrowser } from '@databeat/tracker'
22

3-
export enum EventType {
3+
export enum AnalyticsEventType {
44
// Core types part of Databeat
55
INIT,
66
VIEW,
@@ -11,11 +11,11 @@ export enum EventType {
1111
SEND_TRANSACTION_REQUEST
1212
}
1313

14-
export type EventTypes = keyof typeof EventType
15-
export type Event = DatabeatEvent<EventTypes>
14+
export type AnalyticsEventTypes = keyof typeof AnalyticsEventType
15+
export type AnalyticsEvent = DatabeatEvent<AnalyticsEventTypes>
1616

1717
// Analytics sub-class to add some custom helper methods
18-
export class Analytics extends Databeat<EventTypes> {}
18+
export class Analytics extends Databeat<AnalyticsEventTypes> {}
1919

2020
// Setup analytics tracker
2121
export const setupAnalytics = (projectAccessKey: string, server?: string) => {

packages/provider/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from './utils'
66
export * from './client'
77
export * from './signer'
88
export * from './init'
9+
export * from './analytics'

0 commit comments

Comments
 (0)