Skip to content

Commit

Permalink
style: adds typings for umami
Browse files Browse the repository at this point in the history
  • Loading branch information
ShindouMihou committed Nov 26, 2022
1 parent 8484509 commit eda9f9b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ declare namespace App {
// interface Error {}
// interface Platform {}
}

declare interface Window {
umami: Umami
}

declare interface Umami {
trackEvent(event: string): voi
trackEvent(event: string, data: any = {}): void
trackView(url: string): void
trackView(url: string, referrer: string): void
}

0 comments on commit eda9f9b

Please sign in to comment.