UNPKG

7.37 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 ToggleEvent extends Event {}
21interface TransitionEvent extends Event {}
22interface UIEvent extends Event {}
23interface WheelEvent extends Event {}
24
25interface EventTarget {}
26interface Document {}
27interface DataTransfer {}
28interface StyleMedia {}
29
30interface Element {}
31interface DocumentFragment {}
32
33interface HTMLElement extends Element {}
34interface HTMLAnchorElement extends HTMLElement {}
35interface HTMLAreaElement extends HTMLElement {}
36interface HTMLAudioElement extends HTMLElement {}
37interface HTMLBaseElement extends HTMLElement {}
38interface HTMLBodyElement extends HTMLElement {}
39interface HTMLBRElement extends HTMLElement {}
40interface HTMLButtonElement extends HTMLElement {}
41interface HTMLCanvasElement extends HTMLElement {}
42interface HTMLDataElement extends HTMLElement {}
43interface HTMLDataListElement extends HTMLElement {}
44interface HTMLDetailsElement extends HTMLElement {}
45interface HTMLDialogElement extends HTMLElement {}
46interface HTMLDivElement extends HTMLElement {}
47interface HTMLDListElement extends HTMLElement {}
48interface HTMLEmbedElement extends HTMLElement {}
49interface HTMLFieldSetElement extends HTMLElement {}
50interface HTMLFormElement extends HTMLElement {}
51interface HTMLHeadingElement extends HTMLElement {}
52interface HTMLHeadElement extends HTMLElement {}
53interface HTMLHRElement extends HTMLElement {}
54interface HTMLHtmlElement extends HTMLElement {}
55interface HTMLIFrameElement extends HTMLElement {}
56interface HTMLImageElement extends HTMLElement {}
57interface HTMLInputElement extends HTMLElement {}
58interface HTMLModElement extends HTMLElement {}
59interface HTMLLabelElement extends HTMLElement {}
60interface HTMLLegendElement extends HTMLElement {}
61interface HTMLLIElement extends HTMLElement {}
62interface HTMLLinkElement extends HTMLElement {}
63interface HTMLMapElement extends HTMLElement {}
64interface HTMLMetaElement extends HTMLElement {}
65interface HTMLMeterElement extends HTMLElement {}
66interface HTMLObjectElement extends HTMLElement {}
67interface HTMLOListElement extends HTMLElement {}
68interface HTMLOptGroupElement extends HTMLElement {}
69interface HTMLOptionElement extends HTMLElement {}
70interface HTMLOutputElement extends HTMLElement {}
71interface HTMLParagraphElement extends HTMLElement {}
72interface HTMLParamElement extends HTMLElement {}
73interface HTMLPreElement extends HTMLElement {}
74interface HTMLProgressElement extends HTMLElement {}
75interface HTMLQuoteElement extends HTMLElement {}
76interface HTMLSlotElement extends HTMLElement {}
77interface HTMLScriptElement extends HTMLElement {}
78interface HTMLSelectElement extends HTMLElement {}
79interface HTMLSourceElement extends HTMLElement {}
80interface HTMLSpanElement extends HTMLElement {}
81interface HTMLStyleElement extends HTMLElement {}
82interface HTMLTableElement extends HTMLElement {}
83interface HTMLTableColElement extends HTMLElement {}
84interface HTMLTableDataCellElement extends HTMLElement {}
85interface HTMLTableHeaderCellElement extends HTMLElement {}
86interface HTMLTableRowElement extends HTMLElement {}
87interface HTMLTableSectionElement extends HTMLElement {}
88interface HTMLTemplateElement extends HTMLElement {}
89interface HTMLTextAreaElement extends HTMLElement {}
90interface HTMLTimeElement extends HTMLElement {}
91interface HTMLTitleElement extends HTMLElement {}
92interface HTMLTrackElement extends HTMLElement {}
93interface HTMLUListElement extends HTMLElement {}
94interface HTMLVideoElement extends HTMLElement {}
95interface HTMLWebViewElement extends HTMLElement {}
96
97interface SVGElement extends Element {}
98interface SVGSVGElement extends SVGElement {}
99interface SVGCircleElement extends SVGElement {}
100interface SVGClipPathElement extends SVGElement {}
101interface SVGDefsElement extends SVGElement {}
102interface SVGDescElement extends SVGElement {}
103interface SVGEllipseElement extends SVGElement {}
104interface SVGFEBlendElement extends SVGElement {}
105interface SVGFEColorMatrixElement extends SVGElement {}
106interface SVGFEComponentTransferElement extends SVGElement {}
107interface SVGFECompositeElement extends SVGElement {}
108interface SVGFEConvolveMatrixElement extends SVGElement {}
109interface SVGFEDiffuseLightingElement extends SVGElement {}
110interface SVGFEDisplacementMapElement extends SVGElement {}
111interface SVGFEDistantLightElement extends SVGElement {}
112interface SVGFEDropShadowElement extends SVGElement {}
113interface SVGFEFloodElement extends SVGElement {}
114interface SVGFEFuncAElement extends SVGElement {}
115interface SVGFEFuncBElement extends SVGElement {}
116interface SVGFEFuncGElement extends SVGElement {}
117interface SVGFEFuncRElement extends SVGElement {}
118interface SVGFEGaussianBlurElement extends SVGElement {}
119interface SVGFEImageElement extends SVGElement {}
120interface SVGFEMergeElement extends SVGElement {}
121interface SVGFEMergeNodeElement extends SVGElement {}
122interface SVGFEMorphologyElement extends SVGElement {}
123interface SVGFEOffsetElement extends SVGElement {}
124interface SVGFEPointLightElement extends SVGElement {}
125interface SVGFESpecularLightingElement extends SVGElement {}
126interface SVGFESpotLightElement extends SVGElement {}
127interface SVGFETileElement extends SVGElement {}
128interface SVGFETurbulenceElement extends SVGElement {}
129interface SVGFilterElement extends SVGElement {}
130interface SVGForeignObjectElement extends SVGElement {}
131interface SVGGElement extends SVGElement {}
132interface SVGImageElement extends SVGElement {}
133interface SVGLineElement extends SVGElement {}
134interface SVGLinearGradientElement extends SVGElement {}
135interface SVGMarkerElement extends SVGElement {}
136interface SVGMaskElement extends SVGElement {}
137interface SVGMetadataElement extends SVGElement {}
138interface SVGPathElement extends SVGElement {}
139interface SVGPatternElement extends SVGElement {}
140interface SVGPolygonElement extends SVGElement {}
141interface SVGPolylineElement extends SVGElement {}
142interface SVGRadialGradientElement extends SVGElement {}
143interface SVGRectElement extends SVGElement {}
144interface SVGSetElement extends SVGElement {}
145interface SVGStopElement extends SVGElement {}
146interface SVGSwitchElement extends SVGElement {}
147interface SVGSymbolElement extends SVGElement {}
148interface SVGTextElement extends SVGElement {}
149interface SVGTextPathElement extends SVGElement {}
150interface SVGTSpanElement extends SVGElement {}
151interface SVGUseElement extends SVGElement {}
152interface SVGViewElement extends SVGElement {}
153
154interface FormData {}
155interface Text {}
156interface TouchList {}
157interface WebGLRenderingContext {}
158interface WebGL2RenderingContext {}
159
160interface TrustedHTML {}