Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion lib/mixpanel-node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,24 @@ declare namespace mixpanel {
type Scalar = string | number | boolean;

export interface InitConfig {
[key: string]: any;
/* Defaults to `false` */
test?: boolean;
/* Defaults to `false` */
debug?: boolean;
/* Enable verbose logging - defaults to `false` */
verbose?: boolean;
/* API hostname - defaults to `"api.mixpanel.com"` */
host?: string;
/* API protocol - defaults to `"https"` */
protocol?: string;
/* API pathname - defaults to `""` */
path?: '';
/* request keepAlive setting - defaults to `true` */
keepAlive?: boolean;
/** Geolocate based on client IP (e.g. when running in Electron) - defaults to `false`.
* To supply the user's IP manually, set to false and provide the `$ip` property instead.
**/
geolocate?: false;
}

export interface PropertyDict {
Expand Down