Skip to content

Commit

Permalink
remove deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Jul 2, 2024
1 parent 233b8de commit 9258178
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/@guardian/core-web-vitals/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TeamName } from '@guardian/libs';
import type { Subscription } from '@guardian/libs';
import { log } from '@guardian/libs';
import type {
CLSMetricWithAttribution,
Expand All @@ -15,7 +15,7 @@ const endpoint = 'https://feast-events.guardianapis.com/web-vitals';

const coreWebVitalsPayload: Partial<CoreWebVitalsPayload> = {};

const teamsForLogging: Set<TeamName> = new Set();
const teamsForLogging: Set<Subscription> = new Set();
let initialised = false;

let queued = false;
Expand Down Expand Up @@ -122,7 +122,7 @@ type InitCoreWebVitalsOptions = {
pageViewId?: string;

sampling?: number;
team?: TeamName;
team?: Subscription;
};

/**
Expand Down Expand Up @@ -197,7 +197,7 @@ export const initCoreWebVitals = async ({
* @param team - Optional team to trigger a log event once metrics are queued.
*/
export const bypassCoreWebVitalsSampling = async (
team?: TeamName,
team?: Subscription,
): Promise<void> => {
if (!initialised) {
console.warn('initCoreWebVitals not yet initialised');
Expand Down

0 comments on commit 9258178

Please sign in to comment.