Skip to content

Commit 5c54663

Browse files
committed
πŸ› types
1 parent 5b5ffa7 commit 5c54663

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

β€Žtest/e2e/lib/framework/createTest.tsβ€Ž

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import { createMockServerApp } from './serverApps/mock'
2020
import type { Extension } from './createExtension'
2121
import { isBrowserStack } from './environment'
2222

23+
import '../types/global'
24+
2325
export function createTest(title: string) {
2426
return new TestBuilder(title)
2527
}

β€Žtest/e2e/lib/framework/pageSetups.tsβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { stripTypeScriptTypes } from 'node:module'
21
import { generateUUID, INTAKE_URL_PARAMETERS } from '@datadog/browser-core'
32
import type { LogsInitConfiguration, DatadogLogs } from '@datadog/browser-logs'
43
import type { RumInitConfiguration, RemoteConfiguration } from '@datadog/browser-rum-core'

β€Žtest/e2e/lib/types/global.tsβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { LogsGlobal } from '@datadog/browser-logs'
2-
import type { RumGlobal } from '@datadog/browser-rum'
1+
import type { DatadogLogs } from '@datadog/browser-logs'
2+
import type { DatadogRum } from '@datadog/browser-rum'
33

44
declare global {
55
interface Window {
6-
DD_LOGS?: LogsGlobal
7-
DD_RUM?: RumGlobal
6+
DD_LOGS?: DatadogLogs
7+
DD_RUM?: DatadogRum
88
}
99
}

β€Žtest/e2e/tsconfig.jsonβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
"target": "ES2022",
1111
"module": "ES2020",
1212
"types": ["node", "ajv"],
13-
"lib": ["WebWorker"],
13+
"lib": ["ESNext", "DOM", "WebWorker"],
1414
"allowJs": true,
1515
"noEmit": true
16-
}
16+
},
17+
"include": ["."]
1718
}

0 commit comments

Comments
Β (0)