diff --git a/mixpanel/mixpanel-tests.ts b/mixpanel/mixpanel-tests.ts index fd52bd989..a9cf296c3 100644 --- a/mixpanel/mixpanel-tests.ts +++ b/mixpanel/mixpanel-tests.ts @@ -1,6 +1,4 @@ /// -var mixpanel = new Mixpanel(); - function mixpanel_base() { mixpanel.init("new token", { your: "config" }, "library_name"); diff --git a/mixpanel/mixpanel.d.ts b/mixpanel/mixpanel.d.ts index 236899632..9d1ef9527 100644 --- a/mixpanel/mixpanel.d.ts +++ b/mixpanel/mixpanel.d.ts @@ -3,7 +3,7 @@ // Definitions by: Knut Eirik Leira Hjelle // Definitions: https://github.com/borisyankov/DefinitelyTyped -declare class Mixpanel +interface Mixpanel { people:Mixpanel.People; @@ -40,7 +40,7 @@ declare class Mixpanel declare module Mixpanel { - class People + interface People { set(keys:{[index:string]:any}, callback?:() => void):void; @@ -66,4 +66,6 @@ declare module Mixpanel delete_user():void; } -} \ No newline at end of file +} + +declare var mixpanel:Mixpanel; \ No newline at end of file