Skip to content

Commit

Permalink
chore: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelRoux committed May 28, 2024
1 parent 6c800e4 commit 399af6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
InternalMatomoTracker,
} from './internal-matomo-tracker.service';

declare var window: MatomoHolder;
declare const window: MatomoHolder;

// Extracted from https://github.com/angular/angular/blob/b66e479cdb1e474a29ff676f10a5fcc3d7eae799/packages/common/src/platform_id.ts
const PLATFORM_BROWSER_ID = 'browser';
Expand All @@ -28,6 +28,7 @@ describe('InternalMatomoTracker', () => {

function createTracker(
config: Partial<InternalMatomoConfiguration> = { disabled: false },
// eslint-disable-next-line @typescript-eslint/ban-types
platform: Object = PLATFORM_BROWSER_ID,
ngZone: NgZone = createMockZone(),
): InternalMatomoTracker<FakeMatomoInstance> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { initializeMatomoHolder, MatomoHolder } from '../holder';
import { Getters, NonEmptyArray, PrefixedType } from '../utils/types';
import { INTERNAL_MATOMO_CONFIGURATION } from './configuration';

declare var window: MatomoHolder;
declare const window: MatomoHolder;

type ReturnType<T> = T extends (...args: any) => infer R ? R : any;

Expand Down

0 comments on commit 399af6e

Please sign in to comment.