astro/packages/webapi/src/inheritence.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
755 B
TypeScript
Raw Normal View History

export const inheritence = {
CSSStyleSheet: 'StyleSheet',
CustomEvent: 'Event',
DOMException: 'Error',
Document: 'Node',
DocumentFragment: 'Node',
Element: 'Node',
File: 'Blob',
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