aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/heap.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 01:16:20 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-17 01:16:20 +0800
commitdf71dba8edcba5ca5731bed969748bdcc73efe92 (patch)
tree0ad0dcc2eccdcb1e13162e5c33268b1a5241d1b1 /packages/instant/src/util/heap.ts
parent37d60dc39ea6476c3185e124175cb02d5e830250 (diff)
downloaddexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.tar
dexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.tar.gz
dexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.tar.bz2
dexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.tar.lz
dexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.tar.xz
dexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.tar.zst
dexon-sol-tools-df71dba8edcba5ca5731bed969748bdcc73efe92.zip
Make user and event properties more specific
Diffstat (limited to 'packages/instant/src/util/heap.ts')
-rw-r--r--packages/instant/src/util/heap.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/instant/src/util/heap.ts b/packages/instant/src/util/heap.ts
index 5fd61b4c9..e697562e4 100644
--- a/packages/instant/src/util/heap.ts
+++ b/packages/instant/src/util/heap.ts
@@ -3,13 +3,15 @@ import { logUtils } from '@0x/utils';
import { ANALYTICS_ENABLED, HEAP_ANALYTICS_DEVELOPMENT_APP_ID } from '../constants';
+import { AnalyticsEventOptions, AnalyticsUserOptions } from './analytics';
+
export interface HeapAnalytics {
loaded: boolean;
identify(id: string, idType: string): void;
track(eventName: string, eventProperties?: ObjectMap<string | number>): void;
resetIdentity(): void;
- addUserProperties(properties: ObjectMap<string | number>): void;
- addEventProperties(properties: ObjectMap<string | number>): void;
+ addUserProperties(properties: AnalyticsUserOptions): void;
+ addEventProperties(properties: AnalyticsEventOptions): void;
removeEventProperty(property: string): void;
clearEventProperties(): void;
}