diff --git a/packages/browser/src/tester/ajs-tester.ts b/packages/browser/src/tester/ajs-tester.ts index ea317feba..5cd0cdfdc 100644 --- a/packages/browser/src/tester/ajs-tester.ts +++ b/packages/browser/src/tester/ajs-tester.ts @@ -24,7 +24,6 @@ function makeStub(page: playwright.Page) { async track( ...args: Parameters ): Promise { - // @ts-expect-error const ctx = await page.evaluate((innerArgs) => { // @ts-ignore return window.analytics.track(...innerArgs).then((ctx) => { diff --git a/packages/core/src/events/interfaces.ts b/packages/core/src/events/interfaces.ts index 8d5d98ee9..1f1f7117c 100644 --- a/packages/core/src/events/interfaces.ts +++ b/packages/core/src/events/interfaces.ts @@ -23,7 +23,7 @@ export type EventProperties = Record export type IntegrationsOptions = { All?: boolean | undefined - [integration: string]: boolean | Record | undefined + [integrationName: string]: boolean | Record | undefined } export interface CoreOptions { diff --git a/packages/core/src/queue/event-queue.ts b/packages/core/src/queue/event-queue.ts index 435af94a8..86dd13679 100644 --- a/packages/core/src/queue/event-queue.ts +++ b/packages/core/src/queue/event-queue.ts @@ -4,7 +4,7 @@ import { ON_REMOVE_FROM_FUTURE, PriorityQueue } from '../priority-queue' import { CoreContext, ContextCancelation } from '../context' import { Emitter } from '@segment/analytics-generic-utils' -import { IntegrationsOptions, JSONObject } from '../events/interfaces' +import { IntegrationsOptions } from '../events/interfaces' import { CorePlugin } from '../plugins' import { createTaskGroup, TaskGroup } from '../task/task-group' import { attempt, ensure } from './delivery' @@ -240,7 +240,8 @@ export abstract class CoreEventQueue< return true } - let alternativeNameMatch: boolean | JSONObject | undefined = undefined + let alternativeNameMatch: boolean | Record | undefined = + undefined p.alternativeNames?.forEach((name) => { if (denyList[name] !== undefined) { alternativeNameMatch = denyList[name]