diff --git a/types/umami-browser/index.d.ts b/types/umami-browser/index.d.ts index cc61c07d8f13b3..d68af46cea9579 100644 --- a/types/umami-browser/index.d.ts +++ b/types/umami-browser/index.d.ts @@ -18,6 +18,7 @@ declare namespace umami { interface EventData { [key: string]: + | boolean | number | string | EventData diff --git a/types/umami-browser/umami-browser-tests.ts b/types/umami-browser/umami-browser-tests.ts index c0b05ac7f6e683..38e272da6fef6a 100644 --- a/types/umami-browser/umami-browser-tests.ts +++ b/types/umami-browser/umami-browser-tests.ts @@ -21,6 +21,9 @@ umami.track((props) => ({ }, })); +umami.track((props) => ({ ...props, data: { superuser: true } })); +umami.track((props) => ({ ...props, data: { superuser: false } })); + umami.identify("test-id"); umami.identify("test-id", { email: "test@example.com" }); umami.identify({ email: "bob@aol.com" });