Skip to content

Commit b82ddfb

Browse files
authored
fix: client type error (#9289)
1 parent 6098457 commit b82ddfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/client/overlay.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const codeframeRE = /^(?:>?\s+\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm
117117

118118
// Allow `ErrorOverlay` to extend `HTMLElement` even in environments where
119119
// `HTMLElement` was not originally defined.
120-
const { HTMLElement = class {} } = globalThis
120+
const { HTMLElement = class {} as typeof globalThis.HTMLElement } = globalThis
121121
export class ErrorOverlay extends HTMLElement {
122122
root: ShadowRoot
123123

0 commit comments

Comments
 (0)