From 4f2ab268eadc60495005bdbbc2d0924771daafc2 Mon Sep 17 00:00:00 2001 From: Jordan Holliday Date: Tue, 23 May 2017 16:18:15 -0400 Subject: [PATCH] [Mixpanel] add reset method to mixpanel global instance --- types/mixpanel/index.d.ts | 4 +++- types/mixpanel/mixpanel-tests.ts | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/mixpanel/index.d.ts b/types/mixpanel/index.d.ts index 345f33bb46..43f805b761 100644 --- a/types/mixpanel/index.d.ts +++ b/types/mixpanel/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Mixpanel +// Type definitions for Mixpanel for 2.11.1 // Project: https://mixpanel.com/ // https://github.com/mixpanel/mixpanel-js // Definitions by: Knut Eirik Leira Hjelle @@ -24,6 +24,8 @@ interface Mixpanel register_once(params:{[index:string]:any}, defaultValue?:string, days?:number):void; + reset():void; + unregister(propertyName:string):void; identify(id?:string):void; diff --git a/types/mixpanel/mixpanel-tests.ts b/types/mixpanel/mixpanel-tests.ts index f85406f3f8..d826478665 100644 --- a/types/mixpanel/mixpanel-tests.ts +++ b/types/mixpanel/mixpanel-tests.ts @@ -32,6 +32,8 @@ function mixpanel_base() mixpanel.get_config(); mixpanel.get_property('device'); + + mixpanel.reset(); } function mixpanel_people()