Skip to content

Commit 355a289

Browse files
Removed any[] and replaced it with proper interfaces
1 parent eb27030 commit 355a289

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

packages/consent/consent-tools-integration-tests/src/page-objects/base-page.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { CDNSettingsBuilder } from '@internal/test-helpers'
22
import { Page, Route, Request } from '@playwright/test'
33
import { SegmentEvent } from '@segment/analytics-next'
4+
import { CoreExtraContext } from '@segment/analytics-core'
45

56
export abstract class BasePage {
67
protected page: Page
78
protected pageFile: string
89

910
segmentTrackingApiReqs: SegmentEvent[] = []
10-
fetchIntegrationReqs: SegmentEvent[] = []
11+
fetchIntegrationReqs: CoreExtraContext[] = []
1112

1213
constructor(page: Page, pageFile: string) {
1314
this.page = page
@@ -44,7 +45,7 @@ export abstract class BasePage {
4445
)
4546
}
4647

47-
get fetchIntegrationReqsData(): SegmentEvent[] {
48+
get fetchIntegrationReqsData(): CoreExtraContext[] {
4849
return this.fetchIntegrationReqs
4950
}
5051

packages/consent/consent-tools-integration-tests/src/tests/example.spec.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)