mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
[Mixpanel] add reset method to mixpanel global instance
This commit is contained in:
parent
e63f331400
commit
4f2ab268ea
4
types/mixpanel/index.d.ts
vendored
4
types/mixpanel/index.d.ts
vendored
@ -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 <https://github.com/hjellek/>
|
||||
@ -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;
|
||||
|
||||
@ -32,6 +32,8 @@ function mixpanel_base()
|
||||
mixpanel.get_config();
|
||||
|
||||
mixpanel.get_property('device');
|
||||
|
||||
mixpanel.reset();
|
||||
}
|
||||
|
||||
function mixpanel_people()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user