Skip to content

Commit 9a974c6

Browse files
committed
fix: remove unnecessary ts-expect-error directives from setup-globals.ts
1 parent 77525d4 commit 9a974c6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

web/test/setup-globals.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@
1313
// Bun has built-in support for web APIs, but we need to ensure they're
1414
// available on globalThis for Next.js server modules
1515
if (typeof globalThis.Request === 'undefined') {
16-
// @ts-expect-error - Bun provides these but TypeScript may not know
1716
globalThis.Request = Request
1817
}
1918

2019
if (typeof globalThis.Response === 'undefined') {
21-
// @ts-expect-error - Bun provides these but TypeScript may not know
2220
globalThis.Response = Response
2321
}
2422

2523
if (typeof globalThis.Headers === 'undefined') {
26-
// @ts-expect-error - Bun provides these but TypeScript may not know
2724
globalThis.Headers = Headers
2825
}
2926

3027
if (typeof globalThis.fetch === 'undefined') {
31-
// @ts-expect-error - Bun provides these but TypeScript may not know
3228
globalThis.fetch = fetch
3329
}

0 commit comments

Comments
 (0)