We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6098457 commit b82ddfbCopy full SHA for b82ddfb
packages/vite/src/client/overlay.ts
@@ -117,7 +117,7 @@ const codeframeRE = /^(?:>?\s+\d+\s+\|.*|\s+\|\s*\^.*)\r?\n/gm
117
118
// Allow `ErrorOverlay` to extend `HTMLElement` even in environments where
119
// `HTMLElement` was not originally defined.
120
-const { HTMLElement = class {} } = globalThis
+const { HTMLElement = class {} as typeof globalThis.HTMLElement } = globalThis
121
export class ErrorOverlay extends HTMLElement {
122
root: ShadowRoot
123
0 commit comments