diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-11-22 04:44:28 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-11-22 05:16:34 +0800 |
commit | 6604e2db20d6263e05b00cf5d36b56788e42d9c2 (patch) | |
tree | 9ceef12d9ccb33d29916be9abfd7fe1287cf1093 /packages/instant/src/util/heap.ts | |
parent | 31d1b4ba670d25c4cd4ed93d32d12718b4804e5d (diff) | |
download | dexon-0x-contracts-6604e2db20d6263e05b00cf5d36b56788e42d9c2.tar.gz dexon-0x-contracts-6604e2db20d6263e05b00cf5d36b56788e42d9c2.tar.zst dexon-0x-contracts-6604e2db20d6263e05b00cf5d36b56788e42d9c2.zip |
chore(instant): refactor usage of event properties in heap
Diffstat (limited to 'packages/instant/src/util/heap.ts')
-rw-r--r-- | packages/instant/src/util/heap.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/util/heap.ts b/packages/instant/src/util/heap.ts index 78ec3b3cc..7c53c9918 100644 --- a/packages/instant/src/util/heap.ts +++ b/packages/instant/src/util/heap.ts @@ -6,11 +6,13 @@ import { HEAP_ANALYTICS_ID } from '../constants'; import { AnalyticsEventOptions, AnalyticsUserOptions } from './analytics'; +export type EventProperties = ObjectMap<string | number>; + export interface HeapAnalytics { loaded: boolean; appid: string; identify(id: string, idType: string): void; - track(eventName: string, eventProperties?: ObjectMap<string | number>): void; + track(eventName: string, eventProperties?: EventProperties): void; resetIdentity(): void; addUserProperties(properties: AnalyticsUserOptions): void; addEventProperties(properties: AnalyticsEventOptions): void; |