0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00
astro/packages/webapi/src/inheritance.ts
Erika c55fbcb8ed
Remove more unnecessary polyfills from webapi for Node 16 (#5814)
* feat(webapi): Remove unnecessary polyfills now that we dropped support for Node 14

* feat(webapi): Removed more unnecessary polyfills for Node 16

* chore: changeset
2023-01-10 15:29:06 +01:00

26 lines
740 B
TypeScript

export const inheritance = {
CSSStyleSheet: 'StyleSheet',
CustomEvent: 'Event',
DOMException: 'Error',
Document: 'Node',
DocumentFragment: 'Node',
Element: 'Node',
HTMLDocument: 'Document',
HTMLElement: 'Element',
HTMLBodyElement: 'HTMLElement',
HTMLCanvasElement: 'HTMLElement',
HTMLDivElement: 'HTMLElement',
HTMLHeadElement: 'HTMLElement',
HTMLHtmlElement: 'HTMLElement',
HTMLImageElement: 'HTMLElement',
HTMLSpanElement: 'HTMLElement',
HTMLStyleElement: 'HTMLElement',
HTMLTemplateElement: 'HTMLElement',
HTMLUnknownElement: 'HTMLElement',
Image: 'HTMLElement',
MediaQueryList: 'EventTarget',
Node: 'EventTarget',
OffscreenCanvas: 'EventTarget',
ShadowRoot: 'DocumentFragment',
Window: 'EventTarget',
} as const