Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#68571 [mixpanel-browser] Update typings fo…
Browse files Browse the repository at this point in the history
…r v2.49.0 by @levrik
  • Loading branch information
levrik authored Feb 9, 2024
1 parent 0d62d94 commit 3c13388
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 6 additions & 1 deletion types/mixpanel-browser/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,18 @@ export interface Config {
cookie_name: string;
loaded: (mixpanel: Mixpanel) => void;
store_google: boolean;
stop_utm_persistence: boolean;
save_referrer: boolean;
test: boolean;
verbose: boolean;
img: boolean;
debug: boolean;
track_links_timeout: number;
track_pageview: boolean;
track_pageview:
| boolean
| "url-with-path"
| "url-with-path-and-query-string"
| "full-url";
skip_first_touch_marketing: boolean;
cookie_expiration: number;
upgrade: boolean;
Expand Down
12 changes: 12 additions & 0 deletions types/mixpanel-browser/mixpanel-browser-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ mixpanel.init("token", {
groups: "",
},
});
mixpanel.init("token", {
track_pageview: true,
});
mixpanel.init("token", {
track_pageview: "url-with-path",
});
mixpanel.init("token", {
track_pageview: "url-with-path-and-query-string",
});
mixpanel.init("token", {
track_pageview: "full-url",
});
mixpanel.push(["register", { a: "b" }]);
mixpanel.disable();
mixpanel.track("Registered", { Gender: "Male", Age: 21 });
Expand Down
2 changes: 1 addition & 1 deletion types/mixpanel-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/mixpanel-browser",
"version": "2.48.9999",
"version": "2.49.9999",
"projects": [
"https://github.com/mixpanel/mixpanel-js"
],
Expand Down

0 comments on commit 3c13388

Please sign in to comment.