astro/packages/webapi/src/inheritence.ts
Nate Moore f18ee36dc0
Add @astrojs/webapi package (#2729)
* chore: add @astrojs/webapi

* chore: update package.json

* fix: update file case

* fix: remove lowercase file

* chore: update tests to use mocha

* chore: update LICENSE
2022-03-07 15:36:22 -06:00

27 lines
755 B
TypeScript

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