UNPKG

8.98 kBTypeScriptView Raw
1/*
2React projects that don't include the DOM library need these interfaces to compile.
3React Native applications use React, but there is no DOM available. The JavaScript runtime
4is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`.
5*/
6
7interface Event { }
8interface AnimationEvent extends Event { }
9interface ClipboardEvent extends Event { }
10interface CompositionEvent extends Event { }
11interface DragEvent extends Event { }
12interface FocusEvent extends Event { }
13interface KeyboardEvent extends Event { }
14interface MouseEvent extends Event { }
15interface TouchEvent extends Event { }
16interface PointerEvent extends Event { }
17interface TransitionEvent extends Event { }
18interface UIEvent extends Event { }
19interface WheelEvent extends Event { }
20
21interface EventTarget { }
22interface Document { }
23interface DataTransfer { }
24interface StyleMedia { }
25
26interface Element { }
27
28interface HTMLElement extends Element { }
29interface HTMLAnchorElement extends HTMLElement { }
30interface HTMLAreaElement extends HTMLElement { }
31interface HTMLAudioElement extends HTMLElement { }
32interface HTMLBaseElement extends HTMLElement { }
33interface HTMLBodyElement extends HTMLElement { }
34interface HTMLBRElement extends HTMLElement { }
35interface HTMLButtonElement extends HTMLElement { }
36interface HTMLCanvasElement extends HTMLElement { }
37interface HTMLDialogElement extends HTMLElement { }
38interface HTMLDivElement extends HTMLElement { }
39interface HTMLDListElement extends HTMLElement { }
40interface HTMLEmbedElement extends HTMLElement { }
41interface HTMLFieldSetElement extends HTMLElement { }
42interface HTMLFormElement extends HTMLElement { }
43interface HTMLHeadingElement extends HTMLElement { }
44interface HTMLHeadElement extends HTMLElement { }
45interface HTMLHRElement extends HTMLElement { }
46interface HTMLTableColElement extends HTMLElement { }
47interface HTMLDataListElement extends HTMLElement { }
48interface HTMLHtmlElement extends HTMLElement { }
49interface HTMLIFrameElement extends HTMLElement { }
50interface HTMLImageElement extends HTMLElement { }
51interface HTMLInputElement extends HTMLElement { }
52interface HTMLModElement extends HTMLElement { }
53interface HTMLLabelElement extends HTMLElement { }
54interface HTMLLegendElement extends HTMLElement { }
55interface HTMLLIElement extends HTMLElement { }
56interface HTMLLinkElement extends HTMLElement { }
57interface HTMLMapElement extends HTMLElement { }
58interface HTMLMetaElement extends HTMLElement { }
59interface HTMLObjectElement extends HTMLElement { }
60interface HTMLOListElement extends HTMLElement { }
61interface HTMLOptGroupElement extends HTMLElement { }
62interface HTMLOptionElement extends HTMLElement { }
63interface HTMLParagraphElement extends HTMLElement { }
64interface HTMLParamElement extends HTMLElement { }
65interface HTMLPreElement extends HTMLElement { }
66interface HTMLProgressElement extends HTMLElement { }
67interface HTMLQuoteElement extends HTMLElement { }
68interface HTMLScriptElement extends HTMLElement { }
69interface HTMLSelectElement extends HTMLElement { }
70interface HTMLSourceElement extends HTMLElement { }
71interface HTMLSpanElement extends HTMLElement { }
72interface HTMLStyleElement extends HTMLElement { }
73interface HTMLTableElement extends HTMLElement { }
74interface HTMLTableSectionElement extends HTMLElement { }
75interface HTMLTableDataCellElement extends HTMLElement { }
76interface HTMLTextAreaElement extends HTMLElement { }
77interface HTMLTableSectionElement extends HTMLElement { }
78interface HTMLTableHeaderCellElement extends HTMLElement { }
79interface HTMLTableSectionElement extends HTMLElement { }
80interface HTMLTitleElement extends HTMLElement { }
81interface HTMLTableRowElement extends HTMLElement { }
82interface HTMLTrackElement extends HTMLElement { }
83interface HTMLUListElement extends HTMLElement { }
84interface HTMLVideoElement extends HTMLElement { }
85interface HTMLTableColElement extends HTMLElement { }
86interface HTMLDataListElement extends HTMLElement { }
87interface HTMLHtmlElement extends HTMLElement { }
88interface HTMLIFrameElement extends HTMLElement { }
89interface HTMLImageElement extends HTMLElement { }
90interface HTMLInputElement extends HTMLElement { }
91interface HTMLModElement extends HTMLElement { }
92interface HTMLLabelElement extends HTMLElement { }
93interface HTMLLegendElement extends HTMLElement { }
94interface HTMLLIElement extends HTMLElement { }
95interface HTMLLinkElement extends HTMLElement { }
96interface HTMLMapElement extends HTMLElement { }
97interface HTMLMetaElement extends HTMLElement { }
98interface HTMLObjectElement extends HTMLElement { }
99interface HTMLOListElement extends HTMLElement { }
100interface HTMLOptGroupElement extends HTMLElement { }
101interface HTMLOptionElement extends HTMLElement { }
102interface HTMLParagraphElement extends HTMLElement { }
103interface HTMLParamElement extends HTMLElement { }
104interface HTMLPreElement extends HTMLElement { }
105interface HTMLProgressElement extends HTMLElement { }
106interface HTMLQuoteElement extends HTMLElement { }
107interface HTMLScriptElement extends HTMLElement { }
108interface HTMLSelectElement extends HTMLElement { }
109interface HTMLSourceElement extends HTMLElement { }
110interface HTMLSpanElement extends HTMLElement { }
111interface HTMLStyleElement extends HTMLElement { }
112interface HTMLTableElement extends HTMLElement { }
113interface HTMLTableSectionElement extends HTMLElement { }
114interface HTMLTableDataCellElement extends HTMLElement { }
115interface HTMLTextAreaElement extends HTMLElement { }
116interface HTMLTableSectionElement extends HTMLElement { }
117interface HTMLTableHeaderCellElement extends HTMLElement { }
118interface HTMLTableSectionElement extends HTMLElement { }
119interface HTMLTitleElement extends HTMLElement { }
120interface HTMLTableRowElement extends HTMLElement { }
121interface HTMLTrackElement extends HTMLElement { }
122interface HTMLUListElement extends HTMLElement { }
123interface HTMLVideoElement extends HTMLElement { }
124interface HTMLWebViewElement extends HTMLElement { }
125
126interface SVGElement extends Element { }
127interface SVGSVGElement extends SVGElement { }
128interface SVGCircleElement extends SVGElement { }
129interface SVGClipPathElement extends SVGElement { }
130interface SVGDefsElement extends SVGElement { }
131interface SVGDescElement extends SVGElement { }
132interface SVGEllipseElement extends SVGElement { }
133interface SVGFEBlendElement extends SVGElement { }
134interface SVGFEColorMatrixElement extends SVGElement { }
135interface SVGFEComponentTransferElement extends SVGElement { }
136interface SVGFECompositeElement extends SVGElement { }
137interface SVGFEConvolveMatrixElement extends SVGElement { }
138interface SVGFEDiffuseLightingElement extends SVGElement { }
139interface SVGFEDisplacementMapElement extends SVGElement { }
140interface SVGFEDistantLightElement extends SVGElement { }
141interface SVGFEFloodElement extends SVGElement { }
142interface SVGFEFuncAElement extends SVGElement { }
143interface SVGFEFuncBElement extends SVGElement { }
144interface SVGFEFuncGElement extends SVGElement { }
145interface SVGFEFuncRElement extends SVGElement { }
146interface SVGFEGaussianBlurElement extends SVGElement { }
147interface SVGFEImageElement extends SVGElement { }
148interface SVGFEMergeElement extends SVGElement { }
149interface SVGFEMergeNodeElement extends SVGElement { }
150interface SVGFEMorphologyElement extends SVGElement { }
151interface SVGFEOffsetElement extends SVGElement { }
152interface SVGFEPointLightElement extends SVGElement { }
153interface SVGFESpecularLightingElement extends SVGElement { }
154interface SVGFESpotLightElement extends SVGElement { }
155interface SVGFETileElement extends SVGElement { }
156interface SVGFETurbulenceElement extends SVGElement { }
157interface SVGFilterElement extends SVGElement { }
158interface SVGForeignObjectElement extends SVGElement { }
159interface SVGGElement extends SVGElement { }
160interface SVGImageElement extends SVGElement { }
161interface SVGLineElement extends SVGElement { }
162interface SVGLinearGradientElement extends SVGElement { }
163interface SVGMarkerElement extends SVGElement { }
164interface SVGMaskElement extends SVGElement { }
165interface SVGMetadataElement extends SVGElement { }
166interface SVGPathElement extends SVGElement { }
167interface SVGPatternElement extends SVGElement { }
168interface SVGPolygonElement extends SVGElement { }
169interface SVGPolylineElement extends SVGElement { }
170interface SVGRadialGradientElement extends SVGElement { }
171interface SVGRectElement extends SVGElement { }
172interface SVGStopElement extends SVGElement { }
173interface SVGSwitchElement extends SVGElement { }
174interface SVGSymbolElement extends SVGElement { }
175interface SVGTextElement extends SVGElement { }
176interface SVGTextPathElement extends SVGElement { }
177interface SVGTSpanElement extends SVGElement { }
178interface SVGUseElement extends SVGElement { }
179interface SVGViewElement extends SVGElement { }
180
181interface TouchList { }