mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Last two arguments to init() are optional.
This commit is contained in:
parent
0ebabfdcc8
commit
719f50c52e
@ -1,6 +1,8 @@
|
||||
/// <reference path="mixpanel.d.ts" />
|
||||
function mixpanel_base()
|
||||
{
|
||||
mixpanel.init("new token");
|
||||
mixpanel.init("new token", { your: "config" });
|
||||
mixpanel.init("new token", { your: "config" }, "library_name");
|
||||
|
||||
mixpanel.push(['register', { a: 'b' }]);
|
||||
|
||||
2
mixpanel/mixpanel.d.ts
vendored
2
mixpanel/mixpanel.d.ts
vendored
@ -8,7 +8,7 @@ interface Mixpanel
|
||||
{
|
||||
people:Mixpanel.People;
|
||||
|
||||
init(token:string, config:{[index:string]:any}, libraryName:string):Mixpanel;
|
||||
init(token:string, config?:{[index:string]:any}, libraryName?:string):Mixpanel;
|
||||
|
||||
push(item:any[]):void;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user