Skip to content

Commit

Permalink
Declare window.umami, which will be set by the loaded js code
Browse files Browse the repository at this point in the history
  • Loading branch information
pilhuhn committed Jan 23, 2025
1 parent bb3c8d6 commit 8be8054
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/module/src/tracking/umami_tracking_provider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import { InitProps, TrackingSpi } from './tracking_spi';
import { TrackingApi, TrackingEventProperties } from './tracking_api';

declare global {
interface Window {
umami: any;
}
}

export class UmamiTrackingProvider implements TrackingSpi, TrackingApi {
// eslint-disable-next-line @typescript-eslint/no-empty-function
registerProvider(): void {}
Expand Down

0 comments on commit 8be8054

Please sign in to comment.