diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-11-22 06:20:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 06:20:01 +0800 |
commit | 5c81f07d467262106f108b37fbf0bad4f5a0589b (patch) | |
tree | 7ec53d0f23e44215c5f2fc9bad534fb6d122ee33 /packages/instant/src/util/heap.ts | |
parent | f46a49fd13c88dd86c9661d76bace18844642c04 (diff) | |
parent | 804de89796de047fe43dbb736b5e8b82bb30ee3a (diff) | |
download | dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.tar dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.tar.gz dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.tar.bz2 dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.tar.lz dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.tar.xz dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.tar.zst dexon-sol-tools-5c81f07d467262106f108b37fbf0bad4f5a0589b.zip |
Merge pull request #1300 from 0xProject/feature/instant/events-account
[instant] Implement account related events
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; |