UNPKG

7.18 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
6Warning: all of these interfaces are empty. If you want type definitions for various properties
7(such as HTMLInputElement.prototype.value), you need to add `--lib DOM` (via command line or tsconfig.json).
8*/
9
10interface Event { }
11interface AnimationEvent extends Event { }
12interface ClipboardEvent extends Event { }
13interface CompositionEvent extends Event { }
14interface DragEvent extends Event { }
15interface FocusEvent extends Event { }
16interface KeyboardEvent extends Event { }
17interface MouseEvent extends Event { }
18interface TouchEvent extends Event { }
19interface PointerEvent extends Event { }
20interface TransitionEvent extends Event { }
21interface UIEvent extends Event { }
22interface WheelEvent extends Event { }
23
24interface EventTarget { }
25interface Document { }
26interface DataTransfer { }
27interface StyleMedia { }
28
29interface Element { }
30interface DocumentFragment { }
31
32interface HTMLElement extends Element { }
33interface HTMLAnchorElement extends HTMLElement { }
34interface HTMLAreaElement extends HTMLElement { }
35interface HTMLAudioElement extends HTMLElement { }
36interface HTMLBaseElement extends HTMLElement { }
37interface HTMLBodyElement extends HTMLElement { }
38interface HTMLBRElement extends HTMLElement { }
39interface HTMLButtonElement extends HTMLElement { }
40interface HTMLCanvasElement extends HTMLElement { }
41interface HTMLDataElement extends HTMLElement { }
42interface HTMLDataListElement extends HTMLElement { }
43interface HTMLDialogElement extends HTMLElement { }
44interface HTMLDivElement extends HTMLElement { }
45interface HTMLDListElement extends HTMLElement { }
46interface HTMLEmbedElement extends HTMLElement { }
47interface HTMLFieldSetElement extends HTMLElement { }
48interface HTMLFormElement extends HTMLElement { }
49interface HTMLHeadingElement extends HTMLElement { }
50interface HTMLHeadElement extends HTMLElement { }
51interface HTMLHRElement extends HTMLElement { }
52interface HTMLHtmlElement extends HTMLElement { }
53interface HTMLIFrameElement extends HTMLElement { }
54interface HTMLImageElement extends HTMLElement { }
55interface HTMLInputElement extends HTMLElement { }
56interface HTMLModElement extends HTMLElement { }
57interface HTMLLabelElement extends HTMLElement { }
58interface HTMLLegendElement extends HTMLElement { }
59interface HTMLLIElement extends HTMLElement { }
60interface HTMLLinkElement extends HTMLElement { }
61interface HTMLMapElement extends HTMLElement { }
62interface HTMLMetaElement extends HTMLElement { }
63interface HTMLObjectElement extends HTMLElement { }
64interface HTMLOListElement extends HTMLElement { }
65interface HTMLOptGroupElement extends HTMLElement { }
66interface HTMLOptionElement extends HTMLElement { }
67interface HTMLParagraphElement extends HTMLElement { }
68interface HTMLParamElement extends HTMLElement { }
69interface HTMLPreElement extends HTMLElement { }
70interface HTMLProgressElement extends HTMLElement { }
71interface HTMLQuoteElement extends HTMLElement { }
72interface HTMLSlotElement extends HTMLElement { }
73interface HTMLScriptElement extends HTMLElement { }
74interface HTMLSelectElement extends HTMLElement { }
75interface HTMLSourceElement extends HTMLElement { }
76interface HTMLSpanElement extends HTMLElement { }
77interface HTMLStyleElement extends HTMLElement { }
78interface HTMLTableElement extends HTMLElement { }
79interface HTMLTableColElement extends HTMLElement { }
80interface HTMLTableDataCellElement extends HTMLElement { }
81interface HTMLTableHeaderCellElement extends HTMLElement { }
82interface HTMLTableRowElement extends HTMLElement { }
83interface HTMLTableSectionElement extends HTMLElement { }
84interface HTMLTemplateElement extends HTMLElement { }
85interface HTMLTextAreaElement extends HTMLElement { }
86interface HTMLTitleElement extends HTMLElement { }
87interface HTMLTrackElement extends HTMLElement { }
88interface HTMLUListElement extends HTMLElement { }
89interface HTMLVideoElement extends HTMLElement { }
90interface HTMLWebViewElement extends HTMLElement { }
91
92interface SVGElement extends Element { }
93interface SVGSVGElement extends SVGElement { }
94interface SVGCircleElement extends SVGElement { }
95interface SVGClipPathElement extends SVGElement { }
96interface SVGDefsElement extends SVGElement { }
97interface SVGDescElement extends SVGElement { }
98interface SVGEllipseElement extends SVGElement { }
99interface SVGFEBlendElement extends SVGElement { }
100interface SVGFEColorMatrixElement extends SVGElement { }
101interface SVGFEComponentTransferElement extends SVGElement { }
102interface SVGFECompositeElement extends SVGElement { }
103interface SVGFEConvolveMatrixElement extends SVGElement { }
104interface SVGFEDiffuseLightingElement extends SVGElement { }
105interface SVGFEDisplacementMapElement extends SVGElement { }
106interface SVGFEDistantLightElement extends SVGElement { }
107interface SVGFEDropShadowElement extends SVGElement { }
108interface SVGFEFloodElement extends SVGElement { }
109interface SVGFEFuncAElement extends SVGElement { }
110interface SVGFEFuncBElement extends SVGElement { }
111interface SVGFEFuncGElement extends SVGElement { }
112interface SVGFEFuncRElement extends SVGElement { }
113interface SVGFEGaussianBlurElement extends SVGElement { }
114interface SVGFEImageElement extends SVGElement { }
115interface SVGFEMergeElement extends SVGElement { }
116interface SVGFEMergeNodeElement extends SVGElement { }
117interface SVGFEMorphologyElement extends SVGElement { }
118interface SVGFEOffsetElement extends SVGElement { }
119interface SVGFEPointLightElement extends SVGElement { }
120interface SVGFESpecularLightingElement extends SVGElement { }
121interface SVGFESpotLightElement extends SVGElement { }
122interface SVGFETileElement extends SVGElement { }
123interface SVGFETurbulenceElement extends SVGElement { }
124interface SVGFilterElement extends SVGElement { }
125interface SVGForeignObjectElement extends SVGElement { }
126interface SVGGElement extends SVGElement { }
127interface SVGImageElement extends SVGElement { }
128interface SVGLineElement extends SVGElement { }
129interface SVGLinearGradientElement extends SVGElement { }
130interface SVGMarkerElement extends SVGElement { }
131interface SVGMaskElement extends SVGElement { }
132interface SVGMetadataElement extends SVGElement { }
133interface SVGPathElement extends SVGElement { }
134interface SVGPatternElement extends SVGElement { }
135interface SVGPolygonElement extends SVGElement { }
136interface SVGPolylineElement extends SVGElement { }
137interface SVGRadialGradientElement extends SVGElement { }
138interface SVGRectElement extends SVGElement { }
139interface SVGStopElement extends SVGElement { }
140interface SVGSwitchElement extends SVGElement { }
141interface SVGSymbolElement extends SVGElement { }
142interface SVGTextElement extends SVGElement { }
143interface SVGTextPathElement extends SVGElement { }
144interface SVGTSpanElement extends SVGElement { }
145interface SVGUseElement extends SVGElement { }
146interface SVGViewElement extends SVGElement { }
147
148interface Text { }
149interface TouchList { }
150interface WebGLRenderingContext { }
151interface WebGL2RenderingContext { }