Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Dec 19, 2024
1 parent 91596a7 commit ce7f6da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/browser/src/tester/ajs-tester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ function makeStub(page: playwright.Page) {
async track(
...args: Parameters<Analytics['track']>
): Promise<SerializedContext> {
// @ts-expect-error
const ctx = await page.evaluate((innerArgs) => {
// @ts-ignore
return window.analytics.track(...innerArgs).then((ctx) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/events/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type EventProperties = Record<string, any>

export type IntegrationsOptions = {
All?: boolean | undefined
[integration: string]: boolean | Record<string, any> | undefined
[integrationName: string]: boolean | Record<string, unknown> | undefined
}

export interface CoreOptions {
Expand Down
5 changes: 3 additions & 2 deletions packages/core/src/queue/event-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -240,7 +240,8 @@ export abstract class CoreEventQueue<
return true
}

let alternativeNameMatch: boolean | JSONObject | undefined = undefined
let alternativeNameMatch: boolean | Record<string, unknown> | undefined =
undefined
p.alternativeNames?.forEach((name) => {
if (denyList[name] !== undefined) {
alternativeNameMatch = denyList[name]
Expand Down

0 comments on commit ce7f6da

Please sign in to comment.