runtime-dom.d.ts 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457
  1. import { BaseTransitionProps } from '@vue/runtime-core';
  2. import { CreateAppFunction } from '@vue/runtime-core';
  3. import { FunctionalComponent } from '@vue/runtime-core';
  4. import { ObjectDirective } from '@vue/runtime-core';
  5. import { RootHydrateFunction } from '@vue/runtime-core';
  6. import { RootRenderFunction } from '@vue/runtime-core';
  7. declare const ANIMATION = "animation";
  8. declare type AssignerFn = (value: any) => void;
  9. export declare const createApp: CreateAppFunction<Element>;
  10. export declare const createSSRApp: CreateAppFunction<Element>;
  11. export declare const hydrate: RootHydrateFunction;
  12. declare type ModelDirective<T> = ObjectDirective<T & {
  13. _assign: AssignerFn;
  14. }>;
  15. export declare const render: RootRenderFunction<Element>;
  16. declare const TRANSITION = "transition";
  17. export declare const Transition: FunctionalComponent<TransitionProps>;
  18. export declare const TransitionGroup: new () => {
  19. $props: TransitionGroupProps;
  20. };
  21. export declare type TransitionGroupProps = Omit<TransitionProps, 'mode'> & {
  22. tag?: string;
  23. moveClass?: string;
  24. };
  25. export declare interface TransitionProps extends BaseTransitionProps<Element> {
  26. name?: string;
  27. type?: typeof TRANSITION | typeof ANIMATION;
  28. css?: boolean;
  29. duration?: number | {
  30. enter: number;
  31. leave: number;
  32. };
  33. enterFromClass?: string;
  34. enterActiveClass?: string;
  35. enterToClass?: string;
  36. appearFromClass?: string;
  37. appearActiveClass?: string;
  38. appearToClass?: string;
  39. leaveFromClass?: string;
  40. leaveActiveClass?: string;
  41. leaveToClass?: string;
  42. }
  43. export declare function useCssModule(name?: string): Record<string, string>;
  44. /**
  45. * Runtime helper for SFC's CSS variable injection feature.
  46. * @private
  47. */
  48. export declare function useCssVars(getter: (ctx: any) => Record<string, string>): void;
  49. export declare const vModelCheckbox: ModelDirective<HTMLInputElement>;
  50. export declare const vModelDynamic: ObjectDirective<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
  51. export declare const vModelRadio: ModelDirective<HTMLInputElement>;
  52. export declare const vModelSelect: ModelDirective<HTMLSelectElement>;
  53. export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement>;
  54. export declare const vShow: ObjectDirective<VShowElement>;
  55. declare interface VShowElement extends HTMLElement {
  56. _vod: string;
  57. }
  58. /**
  59. * @private
  60. */
  61. export declare const withKeys: (fn: Function, modifiers: string[]) => (event: KeyboardEvent) => any;
  62. /**
  63. * @private
  64. */
  65. export declare const withModifiers: (fn: Function, modifiers: string[]) => (event: Event, ...args: unknown[]) => any;
  66. export * from "@vue/runtime-core";
  67. export { }
  68. // Note: this file is auto concatenated to the end of the bundled d.ts during
  69. // build.
  70. // This code is based on react definition in DefinitelyTyped published under the MIT license.
  71. // Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
  72. // Path in the repository: types/react/index.d.ts
  73. //
  74. // Copyrights of original definition are:
  75. // AssureSign <http://www.assuresign.com>
  76. // Microsoft <https://microsoft.com>
  77. // John Reilly <https://github.com/johnnyreilly>
  78. // Benoit Benezech <https://github.com/bbenezech>
  79. // Patricio Zavolinsky <https://github.com/pzavolinsky>
  80. // Digiguru <https://github.com/digiguru>
  81. // Eric Anderson <https://github.com/ericanderson>
  82. // Dovydas Navickas <https://github.com/DovydasNavickas>
  83. // Josh Rutherford <https://github.com/theruther4d>
  84. // Guilherme Hübner <https://github.com/guilhermehubner>
  85. // Ferdy Budhidharma <https://github.com/ferdaber>
  86. // Johann Rakotoharisoa <https://github.com/jrakotoharisoa>
  87. // Olivier Pascal <https://github.com/pascaloliv>
  88. // Martin Hochel <https://github.com/hotell>
  89. // Frank Li <https://github.com/franklixuefei>
  90. // Jessica Franco <https://github.com/Jessidhia>
  91. // Saransh Kataria <https://github.com/saranshkataria>
  92. // Kanitkorn Sujautra <https://github.com/lukyth>
  93. // Sebastian Silbermann <https://github.com/eps1lon>
  94. import * as CSS from 'csstype'
  95. export interface CSSProperties extends CSS.Properties<string | number> {
  96. /**
  97. * The index signature was removed to enable closed typing for style
  98. * using CSSType. You're able to use type assertion or module augmentation
  99. * to add properties or an index signature of your own.
  100. *
  101. * For examples and more information, visit:
  102. * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors
  103. */
  104. }
  105. type Booleanish = boolean | 'true' | 'false'
  106. // All the WAI-ARIA 1.1 attributes from https://www.w3.org/TR/wai-aria-1.1/
  107. interface AriaAttributes {
  108. /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
  109. 'aria-activedescendant'?: string
  110. /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
  111. 'aria-atomic'?: boolean | 'false' | 'true'
  112. /**
  113. * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
  114. * presented if they are made.
  115. */
  116. 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both'
  117. /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
  118. 'aria-busy'?: boolean | 'false' | 'true'
  119. /**
  120. * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
  121. * @see aria-pressed @see aria-selected.
  122. */
  123. 'aria-checked'?: boolean | 'false' | 'mixed' | 'true'
  124. /**
  125. * Defines the total number of columns in a table, grid, or treegrid.
  126. * @see aria-colindex.
  127. */
  128. 'aria-colcount'?: number
  129. /**
  130. * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
  131. * @see aria-colcount @see aria-colspan.
  132. */
  133. 'aria-colindex'?: number
  134. /**
  135. * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
  136. * @see aria-colindex @see aria-rowspan.
  137. */
  138. 'aria-colspan'?: number
  139. /**
  140. * Identifies the element (or elements) whose contents or presence are controlled by the current element.
  141. * @see aria-owns.
  142. */
  143. 'aria-controls'?: string
  144. /** Indicates the element that represents the current item within a container or set of related elements. */
  145. 'aria-current'?:
  146. | boolean
  147. | 'false'
  148. | 'true'
  149. | 'page'
  150. | 'step'
  151. | 'location'
  152. | 'date'
  153. | 'time'
  154. /**
  155. * Identifies the element (or elements) that describes the object.
  156. * @see aria-labelledby
  157. */
  158. 'aria-describedby'?: string
  159. /**
  160. * Identifies the element that provides a detailed, extended description for the object.
  161. * @see aria-describedby.
  162. */
  163. 'aria-details'?: string
  164. /**
  165. * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
  166. * @see aria-hidden @see aria-readonly.
  167. */
  168. 'aria-disabled'?: boolean | 'false' | 'true'
  169. /**
  170. * Indicates what functions can be performed when a dragged object is released on the drop target.
  171. * @deprecated in ARIA 1.1
  172. */
  173. 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup'
  174. /**
  175. * Identifies the element that provides an error message for the object.
  176. * @see aria-invalid @see aria-describedby.
  177. */
  178. 'aria-errormessage'?: string
  179. /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
  180. 'aria-expanded'?: boolean | 'false' | 'true'
  181. /**
  182. * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
  183. * allows assistive technology to override the general default of reading in document source order.
  184. */
  185. 'aria-flowto'?: string
  186. /**
  187. * Indicates an element's "grabbed" state in a drag-and-drop operation.
  188. * @deprecated in ARIA 1.1
  189. */
  190. 'aria-grabbed'?: boolean | 'false' | 'true'
  191. /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
  192. 'aria-haspopup'?:
  193. | boolean
  194. | 'false'
  195. | 'true'
  196. | 'menu'
  197. | 'listbox'
  198. | 'tree'
  199. | 'grid'
  200. | 'dialog'
  201. /**
  202. * Indicates whether the element is exposed to an accessibility API.
  203. * @see aria-disabled.
  204. */
  205. 'aria-hidden'?: boolean | 'false' | 'true'
  206. /**
  207. * Indicates the entered value does not conform to the format expected by the application.
  208. * @see aria-errormessage.
  209. */
  210. 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling'
  211. /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
  212. 'aria-keyshortcuts'?: string
  213. /**
  214. * Defines a string value that labels the current element.
  215. * @see aria-labelledby.
  216. */
  217. 'aria-label'?: string
  218. /**
  219. * Identifies the element (or elements) that labels the current element.
  220. * @see aria-describedby.
  221. */
  222. 'aria-labelledby'?: string
  223. /** Defines the hierarchical level of an element within a structure. */
  224. 'aria-level'?: number
  225. /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
  226. 'aria-live'?: 'off' | 'assertive' | 'polite'
  227. /** Indicates whether an element is modal when displayed. */
  228. 'aria-modal'?: boolean | 'false' | 'true'
  229. /** Indicates whether a text box accepts multiple lines of input or only a single line. */
  230. 'aria-multiline'?: boolean | 'false' | 'true'
  231. /** Indicates that the user may select more than one item from the current selectable descendants. */
  232. 'aria-multiselectable'?: boolean | 'false' | 'true'
  233. /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
  234. 'aria-orientation'?: 'horizontal' | 'vertical'
  235. /**
  236. * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
  237. * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
  238. * @see aria-controls.
  239. */
  240. 'aria-owns'?: string
  241. /**
  242. * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
  243. * A hint could be a sample value or a brief description of the expected format.
  244. */
  245. 'aria-placeholder'?: string
  246. /**
  247. * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
  248. * @see aria-setsize.
  249. */
  250. 'aria-posinset'?: number
  251. /**
  252. * Indicates the current "pressed" state of toggle buttons.
  253. * @see aria-checked @see aria-selected.
  254. */
  255. 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true'
  256. /**
  257. * Indicates that the element is not editable, but is otherwise operable.
  258. * @see aria-disabled.
  259. */
  260. 'aria-readonly'?: boolean | 'false' | 'true'
  261. /**
  262. * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
  263. * @see aria-atomic.
  264. */
  265. 'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text'
  266. /** Indicates that user input is required on the element before a form may be submitted. */
  267. 'aria-required'?: boolean | 'false' | 'true'
  268. /** Defines a human-readable, author-localized description for the role of an element. */
  269. 'aria-roledescription'?: string
  270. /**
  271. * Defines the total number of rows in a table, grid, or treegrid.
  272. * @see aria-rowindex.
  273. */
  274. 'aria-rowcount'?: number
  275. /**
  276. * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
  277. * @see aria-rowcount @see aria-rowspan.
  278. */
  279. 'aria-rowindex'?: number
  280. /**
  281. * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
  282. * @see aria-rowindex @see aria-colspan.
  283. */
  284. 'aria-rowspan'?: number
  285. /**
  286. * Indicates the current "selected" state of various widgets.
  287. * @see aria-checked @see aria-pressed.
  288. */
  289. 'aria-selected'?: boolean | 'false' | 'true'
  290. /**
  291. * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
  292. * @see aria-posinset.
  293. */
  294. 'aria-setsize'?: number
  295. /** Indicates if items in a table or grid are sorted in ascending or descending order. */
  296. 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other'
  297. /** Defines the maximum allowed value for a range widget. */
  298. 'aria-valuemax'?: number
  299. /** Defines the minimum allowed value for a range widget. */
  300. 'aria-valuemin'?: number
  301. /**
  302. * Defines the current value for a range widget.
  303. * @see aria-valuetext.
  304. */
  305. 'aria-valuenow'?: number
  306. /** Defines the human readable text alternative of aria-valuenow for a range widget. */
  307. 'aria-valuetext'?: string
  308. }
  309. export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> {
  310. innerHTML?: string
  311. class?: any
  312. style?: string | CSSProperties
  313. // Standard HTML Attributes
  314. accesskey?: string
  315. contenteditable?: Booleanish | 'inherit'
  316. contextmenu?: string
  317. dir?: string
  318. draggable?: Booleanish
  319. hidden?: boolean
  320. id?: string
  321. lang?: string
  322. placeholder?: string
  323. spellcheck?: Booleanish
  324. tabindex?: number
  325. title?: string
  326. translate?: 'yes' | 'no'
  327. // Unknown
  328. radiogroup?: string // <command>, <menuitem>
  329. // WAI-ARIA
  330. role?: string
  331. // RDFa Attributes
  332. about?: string
  333. datatype?: string
  334. inlist?: any
  335. prefix?: string
  336. property?: string
  337. resource?: string
  338. typeof?: string
  339. vocab?: string
  340. // Non-standard Attributes
  341. autocapitalize?: string
  342. autocorrect?: string
  343. autocave?: string
  344. color?: string
  345. itemprop?: string
  346. itemscope?: boolean
  347. itemtype?: string
  348. itemid?: string
  349. itemref?: string
  350. results?: number
  351. security?: string
  352. unselectable?: 'on' | 'off'
  353. // Living Standard
  354. /**
  355. * Hints at the type of data that might be entered by the user while editing the element or its contents
  356. * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
  357. */
  358. inputmode?:
  359. | 'none'
  360. | 'text'
  361. | 'tel'
  362. | 'url'
  363. | 'email'
  364. | 'numeric'
  365. | 'decimal'
  366. | 'search'
  367. /**
  368. * Specify that a standard HTML element should behave like a defined custom built-in element
  369. * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is
  370. */
  371. is?: string
  372. }
  373. export interface AnchorHTMLAttributes extends HTMLAttributes {
  374. download?: any
  375. href?: string
  376. hreflang?: string
  377. media?: string
  378. ping?: string
  379. rel?: string
  380. target?: string
  381. type?: string
  382. referrerpolicy?: string
  383. }
  384. export interface AreaHTMLAttributes extends HTMLAttributes {
  385. alt?: string
  386. coords?: string
  387. download?: any
  388. href?: string
  389. hreflang?: string
  390. media?: string
  391. rel?: string
  392. shape?: string
  393. target?: string
  394. }
  395. export interface AudioHTMLAttributes extends MediaHTMLAttributes {}
  396. export interface BaseHTMLAttributes extends HTMLAttributes {
  397. href?: string
  398. target?: string
  399. }
  400. export interface BlockquoteHTMLAttributes extends HTMLAttributes {
  401. cite?: string
  402. }
  403. export interface ButtonHTMLAttributes extends HTMLAttributes {
  404. autofocus?: boolean
  405. disabled?: boolean
  406. form?: string
  407. formaction?: string
  408. formenctype?: string
  409. formmethod?: string
  410. formnovalidate?: boolean
  411. formtarget?: string
  412. name?: string
  413. type?: 'submit' | 'reset' | 'button'
  414. value?: string | string[] | number
  415. }
  416. export interface CanvasHTMLAttributes extends HTMLAttributes {
  417. height?: number | string
  418. width?: number | string
  419. }
  420. export interface ColHTMLAttributes extends HTMLAttributes {
  421. span?: number
  422. width?: number | string
  423. }
  424. export interface ColgroupHTMLAttributes extends HTMLAttributes {
  425. span?: number
  426. }
  427. export interface DataHTMLAttributes extends HTMLAttributes {
  428. value?: string | string[] | number
  429. }
  430. export interface DetailsHTMLAttributes extends HTMLAttributes {
  431. open?: boolean
  432. }
  433. export interface DelHTMLAttributes extends HTMLAttributes {
  434. cite?: string
  435. datetime?: string
  436. }
  437. export interface DialogHTMLAttributes extends HTMLAttributes {
  438. open?: boolean
  439. }
  440. export interface EmbedHTMLAttributes extends HTMLAttributes {
  441. height?: number | string
  442. src?: string
  443. type?: string
  444. width?: number | string
  445. }
  446. export interface FieldsetHTMLAttributes extends HTMLAttributes {
  447. disabled?: boolean
  448. form?: string
  449. name?: string
  450. }
  451. export interface FormHTMLAttributes extends HTMLAttributes {
  452. acceptcharset?: string
  453. action?: string
  454. autocomplete?: string
  455. enctype?: string
  456. method?: string
  457. name?: string
  458. novalidate?: boolean
  459. target?: string
  460. }
  461. export interface HtmlHTMLAttributes extends HTMLAttributes {
  462. manifest?: string
  463. }
  464. export interface IframeHTMLAttributes extends HTMLAttributes {
  465. allow?: string
  466. allowfullscreen?: boolean
  467. allowtransparency?: boolean
  468. frameborder?: number | string
  469. height?: number | string
  470. marginheight?: number
  471. marginwidth?: number
  472. name?: string
  473. referrerpolicy?: string
  474. sandbox?: string
  475. scrolling?: string
  476. seamless?: boolean
  477. src?: string
  478. srcdoc?: string
  479. width?: number | string
  480. }
  481. export interface ImgHTMLAttributes extends HTMLAttributes {
  482. alt?: string
  483. crossorigin?: 'anonymous' | 'use-credentials' | ''
  484. decoding?: 'async' | 'auto' | 'sync'
  485. height?: number | string
  486. sizes?: string
  487. src?: string
  488. srcset?: string
  489. usemap?: string
  490. width?: number | string
  491. }
  492. export interface InsHTMLAttributes extends HTMLAttributes {
  493. cite?: string
  494. datetime?: string
  495. }
  496. export interface InputHTMLAttributes extends HTMLAttributes {
  497. accept?: string
  498. alt?: string
  499. autocomplete?: string
  500. autofocus?: boolean
  501. capture?: boolean // https://www.w3.org/tr/html-media-capture/#the-capture-attribute
  502. checked?: boolean
  503. crossorigin?: string
  504. disabled?: boolean
  505. form?: string
  506. formaction?: string
  507. formenctype?: string
  508. formmethod?: string
  509. formnovalidate?: boolean
  510. formtarget?: string
  511. height?: number | string
  512. list?: string
  513. max?: number | string
  514. maxlength?: number
  515. min?: number | string
  516. minlength?: number
  517. multiple?: boolean
  518. name?: string
  519. pattern?: string
  520. placeholder?: string
  521. readonly?: boolean
  522. required?: boolean
  523. size?: number
  524. src?: string
  525. step?: number | string
  526. type?: string
  527. value?: string | string[] | number
  528. width?: number | string
  529. }
  530. export interface KeygenHTMLAttributes extends HTMLAttributes {
  531. autofocus?: boolean
  532. challenge?: string
  533. disabled?: boolean
  534. form?: string
  535. keytype?: string
  536. keyparams?: string
  537. name?: string
  538. }
  539. export interface LabelHTMLAttributes extends HTMLAttributes {
  540. for?: string
  541. form?: string
  542. }
  543. export interface LiHTMLAttributes extends HTMLAttributes {
  544. value?: string | string[] | number
  545. }
  546. export interface LinkHTMLAttributes extends HTMLAttributes {
  547. as?: string
  548. crossorigin?: string
  549. href?: string
  550. hreflang?: string
  551. integrity?: string
  552. media?: string
  553. rel?: string
  554. sizes?: string
  555. type?: string
  556. }
  557. export interface MapHTMLAttributes extends HTMLAttributes {
  558. name?: string
  559. }
  560. export interface MenuHTMLAttributes extends HTMLAttributes {
  561. type?: string
  562. }
  563. export interface MediaHTMLAttributes extends HTMLAttributes {
  564. autoplay?: boolean
  565. controls?: boolean
  566. controlslist?: string
  567. crossorigin?: string
  568. loop?: boolean
  569. mediagroup?: string
  570. muted?: boolean
  571. playsinline?: boolean
  572. preload?: string
  573. src?: string
  574. }
  575. export interface MetaHTMLAttributes extends HTMLAttributes {
  576. charset?: string
  577. content?: string
  578. httpequiv?: string
  579. name?: string
  580. }
  581. export interface MeterHTMLAttributes extends HTMLAttributes {
  582. form?: string
  583. high?: number
  584. low?: number
  585. max?: number | string
  586. min?: number | string
  587. optimum?: number
  588. value?: string | string[] | number
  589. }
  590. export interface QuoteHTMLAttributes extends HTMLAttributes {
  591. cite?: string
  592. }
  593. export interface ObjectHTMLAttributes extends HTMLAttributes {
  594. classid?: string
  595. data?: string
  596. form?: string
  597. height?: number | string
  598. name?: string
  599. type?: string
  600. usemap?: string
  601. width?: number | string
  602. wmode?: string
  603. }
  604. export interface OlHTMLAttributes extends HTMLAttributes {
  605. reversed?: boolean
  606. start?: number
  607. type?: '1' | 'a' | 'A' | 'i' | 'I'
  608. }
  609. export interface OptgroupHTMLAttributes extends HTMLAttributes {
  610. disabled?: boolean
  611. label?: string
  612. }
  613. export interface OptionHTMLAttributes extends HTMLAttributes {
  614. disabled?: boolean
  615. label?: string
  616. selected?: boolean
  617. value?: string | string[] | number
  618. }
  619. export interface OutputHTMLAttributes extends HTMLAttributes {
  620. for?: string
  621. form?: string
  622. name?: string
  623. }
  624. export interface ParamHTMLAttributes extends HTMLAttributes {
  625. name?: string
  626. value?: string | string[] | number
  627. }
  628. export interface ProgressHTMLAttributes extends HTMLAttributes {
  629. max?: number | string
  630. value?: string | string[] | number
  631. }
  632. export interface ScriptHTMLAttributes extends HTMLAttributes {
  633. async?: boolean
  634. charset?: string
  635. crossorigin?: string
  636. defer?: boolean
  637. integrity?: string
  638. nomodule?: boolean
  639. nonce?: string
  640. src?: string
  641. type?: string
  642. }
  643. export interface SelectHTMLAttributes extends HTMLAttributes {
  644. autocomplete?: string
  645. autofocus?: boolean
  646. disabled?: boolean
  647. form?: string
  648. multiple?: boolean
  649. name?: string
  650. required?: boolean
  651. size?: number
  652. value?: string | string[] | number
  653. }
  654. export interface SourceHTMLAttributes extends HTMLAttributes {
  655. media?: string
  656. sizes?: string
  657. src?: string
  658. srcset?: string
  659. type?: string
  660. }
  661. export interface StyleHTMLAttributes extends HTMLAttributes {
  662. media?: string
  663. nonce?: string
  664. scoped?: boolean
  665. type?: string
  666. }
  667. export interface TableHTMLAttributes extends HTMLAttributes {
  668. cellpadding?: number | string
  669. cellspacing?: number | string
  670. summary?: string
  671. }
  672. export interface TextareaHTMLAttributes extends HTMLAttributes {
  673. autocomplete?: string
  674. autofocus?: boolean
  675. cols?: number
  676. dirname?: string
  677. disabled?: boolean
  678. form?: string
  679. maxlength?: number
  680. minlength?: number
  681. name?: string
  682. placeholder?: string
  683. readonly?: boolean
  684. required?: boolean
  685. rows?: number
  686. value?: string | string[] | number
  687. wrap?: string
  688. }
  689. export interface TdHTMLAttributes extends HTMLAttributes {
  690. align?: 'left' | 'center' | 'right' | 'justify' | 'char'
  691. colspan?: number
  692. headers?: string
  693. rowspan?: number
  694. scope?: string
  695. valign?: 'top' | 'middle' | 'bottom' | 'baseline'
  696. }
  697. export interface ThHTMLAttributes extends HTMLAttributes {
  698. align?: 'left' | 'center' | 'right' | 'justify' | 'char'
  699. colspan?: number
  700. headers?: string
  701. rowspan?: number
  702. scope?: string
  703. }
  704. export interface TimeHTMLAttributes extends HTMLAttributes {
  705. datetime?: string
  706. }
  707. export interface TrackHTMLAttributes extends HTMLAttributes {
  708. default?: boolean
  709. kind?: string
  710. label?: string
  711. src?: string
  712. srclang?: string
  713. }
  714. export interface VideoHTMLAttributes extends MediaHTMLAttributes {
  715. height?: number | string
  716. playsinline?: boolean
  717. poster?: string
  718. width?: number | string
  719. disablePictureInPicture?: boolean
  720. }
  721. export interface WebViewHTMLAttributes extends HTMLAttributes {
  722. allowfullscreen?: boolean
  723. allowpopups?: boolean
  724. autoFocus?: boolean
  725. autosize?: boolean
  726. blinkfeatures?: string
  727. disableblinkfeatures?: string
  728. disableguestresize?: boolean
  729. disablewebsecurity?: boolean
  730. guestinstance?: string
  731. httpreferrer?: string
  732. nodeintegration?: boolean
  733. partition?: string
  734. plugins?: boolean
  735. preload?: string
  736. src?: string
  737. useragent?: string
  738. webpreferences?: string
  739. }
  740. export interface SVGAttributes extends AriaAttributes, EventHandlers<Events> {
  741. innerHTML?: string
  742. /**
  743. * SVG Styling Attributes
  744. * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling
  745. */
  746. class?: any
  747. style?: string | CSSProperties
  748. color?: string
  749. height?: number | string
  750. id?: string
  751. lang?: string
  752. max?: number | string
  753. media?: string
  754. method?: string
  755. min?: number | string
  756. name?: string
  757. target?: string
  758. type?: string
  759. width?: number | string
  760. // Other HTML properties supported by SVG elements in browsers
  761. role?: string
  762. tabindex?: number
  763. // SVG Specific attributes
  764. 'accent-height'?: number | string
  765. accumulate?: 'none' | 'sum'
  766. additive?: 'replace' | 'sum'
  767. 'alignment-baseline'?:
  768. | 'auto'
  769. | 'baseline'
  770. | 'before-edge'
  771. | 'text-before-edge'
  772. | 'middle'
  773. | 'central'
  774. | 'after-edge'
  775. | 'text-after-edge'
  776. | 'ideographic'
  777. | 'alphabetic'
  778. | 'hanging'
  779. | 'mathematical'
  780. | 'inherit'
  781. allowReorder?: 'no' | 'yes'
  782. alphabetic?: number | string
  783. amplitude?: number | string
  784. 'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated'
  785. ascent?: number | string
  786. attributeName?: string
  787. attributeType?: string
  788. autoReverse?: number | string
  789. azimuth?: number | string
  790. baseFrequency?: number | string
  791. 'baseline-shift'?: number | string
  792. baseProfile?: number | string
  793. bbox?: number | string
  794. begin?: number | string
  795. bias?: number | string
  796. by?: number | string
  797. calcMode?: number | string
  798. 'cap-height'?: number | string
  799. clip?: number | string
  800. 'clip-path'?: string
  801. clipPathUnits?: number | string
  802. 'clip-rule'?: number | string
  803. 'color-interpolation'?: number | string
  804. 'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB' | 'inherit'
  805. 'color-profile'?: number | string
  806. 'color-rendering'?: number | string
  807. contentScriptType?: number | string
  808. contentStyleType?: number | string
  809. cursor?: number | string
  810. cx?: number | string
  811. cy?: number | string
  812. d?: string
  813. decelerate?: number | string
  814. descent?: number | string
  815. diffuseConstant?: number | string
  816. direction?: number | string
  817. display?: number | string
  818. divisor?: number | string
  819. 'dominant-baseline'?: number | string
  820. dur?: number | string
  821. dx?: number | string
  822. dy?: number | string
  823. edgeMode?: number | string
  824. elevation?: number | string
  825. 'enable-background'?: number | string
  826. end?: number | string
  827. exponent?: number | string
  828. externalResourcesRequired?: number | string
  829. fill?: string
  830. 'fill-opacity'?: number | string
  831. 'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit'
  832. filter?: string
  833. filterRes?: number | string
  834. filterUnits?: number | string
  835. 'flood-color'?: number | string
  836. 'flood-opacity'?: number | string
  837. focusable?: number | string
  838. 'font-family'?: string
  839. 'font-size'?: number | string
  840. 'font-size-adjust'?: number | string
  841. 'font-stretch'?: number | string
  842. 'font-style'?: number | string
  843. 'font-variant'?: number | string
  844. 'font-weight'?: number | string
  845. format?: number | string
  846. from?: number | string
  847. fx?: number | string
  848. fy?: number | string
  849. g1?: number | string
  850. g2?: number | string
  851. 'glyph-name'?: number | string
  852. 'glyph-orientation-horizontal'?: number | string
  853. 'glyph-orientation-vertical'?: number | string
  854. glyphRef?: number | string
  855. gradientTransform?: string
  856. gradientUnits?: string
  857. hanging?: number | string
  858. 'horiz-adv-x'?: number | string
  859. 'horiz-origin-x'?: number | string
  860. href?: string
  861. ideographic?: number | string
  862. 'image-rendering'?: number | string
  863. in2?: number | string
  864. in?: string
  865. intercept?: number | string
  866. k1?: number | string
  867. k2?: number | string
  868. k3?: number | string
  869. k4?: number | string
  870. k?: number | string
  871. kernelMatrix?: number | string
  872. kernelUnitLength?: number | string
  873. kerning?: number | string
  874. keyPoints?: number | string
  875. keySplines?: number | string
  876. keyTimes?: number | string
  877. lengthAdjust?: number | string
  878. 'letter-spacing'?: number | string
  879. 'lighting-color'?: number | string
  880. limitingConeAngle?: number | string
  881. local?: number | string
  882. 'marker-end'?: string
  883. markerHeight?: number | string
  884. 'marker-mid'?: string
  885. 'marker-start'?: string
  886. markerUnits?: number | string
  887. markerWidth?: number | string
  888. mask?: string
  889. maskContentUnits?: number | string
  890. maskUnits?: number | string
  891. mathematical?: number | string
  892. mode?: number | string
  893. numOctaves?: number | string
  894. offset?: number | string
  895. opacity?: number | string
  896. operator?: number | string
  897. order?: number | string
  898. orient?: number | string
  899. orientation?: number | string
  900. origin?: number | string
  901. overflow?: number | string
  902. 'overline-position'?: number | string
  903. 'overline-thickness'?: number | string
  904. 'paint-order'?: number | string
  905. 'panose-1'?: number | string
  906. pathLength?: number | string
  907. patternContentUnits?: string
  908. patternTransform?: number | string
  909. patternUnits?: string
  910. 'pointer-events'?: number | string
  911. points?: string
  912. pointsAtX?: number | string
  913. pointsAtY?: number | string
  914. pointsAtZ?: number | string
  915. preserveAlpha?: number | string
  916. preserveAspectRatio?: string
  917. primitiveUnits?: number | string
  918. r?: number | string
  919. radius?: number | string
  920. refX?: number | string
  921. refY?: number | string
  922. renderingIntent?: number | string
  923. repeatCount?: number | string
  924. repeatDur?: number | string
  925. requiredExtensions?: number | string
  926. requiredFeatures?: number | string
  927. restart?: number | string
  928. result?: string
  929. rotate?: number | string
  930. rx?: number | string
  931. ry?: number | string
  932. scale?: number | string
  933. seed?: number | string
  934. 'shape-rendering'?: number | string
  935. slope?: number | string
  936. spacing?: number | string
  937. specularConstant?: number | string
  938. specularExponent?: number | string
  939. speed?: number | string
  940. spreadMethod?: string
  941. startOffset?: number | string
  942. stdDeviation?: number | string
  943. stemh?: number | string
  944. stemv?: number | string
  945. stitchTiles?: number | string
  946. 'stop-color'?: string
  947. 'stop-opacity'?: number | string
  948. 'strikethrough-position'?: number | string
  949. 'strikethrough-thickness'?: number | string
  950. string?: number | string
  951. stroke?: string
  952. 'stroke-dasharray'?: string | number
  953. 'stroke-dashoffset'?: string | number
  954. 'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit'
  955. 'stroke-linejoin'?: 'miter' | 'round' | 'bevel' | 'inherit'
  956. 'stroke-miterlimit'?: number | string
  957. 'stroke-opacity'?: number | string
  958. 'stroke-width'?: number | string
  959. surfaceScale?: number | string
  960. systemLanguage?: number | string
  961. tableValues?: number | string
  962. targetX?: number | string
  963. targetY?: number | string
  964. 'text-anchor'?: string
  965. 'text-decoration'?: number | string
  966. textLength?: number | string
  967. 'text-rendering'?: number | string
  968. to?: number | string
  969. transform?: string
  970. u1?: number | string
  971. u2?: number | string
  972. 'underline-position'?: number | string
  973. 'underline-thickness'?: number | string
  974. unicode?: number | string
  975. 'unicode-bidi'?: number | string
  976. 'unicode-range'?: number | string
  977. 'unitsPer-em'?: number | string
  978. 'v-alphabetic'?: number | string
  979. values?: string
  980. 'vector-effect'?: number | string
  981. version?: string
  982. 'vert-adv-y'?: number | string
  983. 'vert-origin-x'?: number | string
  984. 'vert-origin-y'?: number | string
  985. 'v-hanging'?: number | string
  986. 'v-ideographic'?: number | string
  987. viewBox?: string
  988. viewTarget?: number | string
  989. visibility?: number | string
  990. 'v-mathematical'?: number | string
  991. widths?: number | string
  992. 'word-spacing'?: number | string
  993. 'writing-mode'?: number | string
  994. x1?: number | string
  995. x2?: number | string
  996. x?: number | string
  997. xChannelSelector?: string
  998. 'x-height'?: number | string
  999. xlinkActuate?: string
  1000. xlinkArcrole?: string
  1001. xlinkHref?: string
  1002. xlinkRole?: string
  1003. xlinkShow?: string
  1004. xlinkTitle?: string
  1005. xlinkType?: string
  1006. xmlns?: string
  1007. y1?: number | string
  1008. y2?: number | string
  1009. y?: number | string
  1010. yChannelSelector?: string
  1011. z?: number | string
  1012. zoomAndPan?: string
  1013. }
  1014. interface IntrinsicElementAttributes {
  1015. a: AnchorHTMLAttributes
  1016. abbr: HTMLAttributes
  1017. address: HTMLAttributes
  1018. area: AreaHTMLAttributes
  1019. article: HTMLAttributes
  1020. aside: HTMLAttributes
  1021. audio: AudioHTMLAttributes
  1022. b: HTMLAttributes
  1023. base: BaseHTMLAttributes
  1024. bdi: HTMLAttributes
  1025. bdo: HTMLAttributes
  1026. blockquote: BlockquoteHTMLAttributes
  1027. body: HTMLAttributes
  1028. br: HTMLAttributes
  1029. button: ButtonHTMLAttributes
  1030. canvas: CanvasHTMLAttributes
  1031. caption: HTMLAttributes
  1032. cite: HTMLAttributes
  1033. code: HTMLAttributes
  1034. col: ColHTMLAttributes
  1035. colgroup: ColgroupHTMLAttributes
  1036. data: DataHTMLAttributes
  1037. datalist: HTMLAttributes
  1038. dd: HTMLAttributes
  1039. del: DelHTMLAttributes
  1040. details: DetailsHTMLAttributes
  1041. dfn: HTMLAttributes
  1042. dialog: DialogHTMLAttributes
  1043. div: HTMLAttributes
  1044. dl: HTMLAttributes
  1045. dt: HTMLAttributes
  1046. em: HTMLAttributes
  1047. embed: EmbedHTMLAttributes
  1048. fieldset: FieldsetHTMLAttributes
  1049. figcaption: HTMLAttributes
  1050. figure: HTMLAttributes
  1051. footer: HTMLAttributes
  1052. form: FormHTMLAttributes
  1053. h1: HTMLAttributes
  1054. h2: HTMLAttributes
  1055. h3: HTMLAttributes
  1056. h4: HTMLAttributes
  1057. h5: HTMLAttributes
  1058. h6: HTMLAttributes
  1059. head: HTMLAttributes
  1060. header: HTMLAttributes
  1061. hgroup: HTMLAttributes
  1062. hr: HTMLAttributes
  1063. html: HtmlHTMLAttributes
  1064. i: HTMLAttributes
  1065. iframe: IframeHTMLAttributes
  1066. img: ImgHTMLAttributes
  1067. input: InputHTMLAttributes
  1068. ins: InsHTMLAttributes
  1069. kbd: HTMLAttributes
  1070. keygen: KeygenHTMLAttributes
  1071. label: LabelHTMLAttributes
  1072. legend: HTMLAttributes
  1073. li: LiHTMLAttributes
  1074. link: LinkHTMLAttributes
  1075. main: HTMLAttributes
  1076. map: MapHTMLAttributes
  1077. mark: HTMLAttributes
  1078. menu: MenuHTMLAttributes
  1079. meta: MetaHTMLAttributes
  1080. meter: MeterHTMLAttributes
  1081. nav: HTMLAttributes
  1082. noindex: HTMLAttributes
  1083. noscript: HTMLAttributes
  1084. object: ObjectHTMLAttributes
  1085. ol: OlHTMLAttributes
  1086. optgroup: OptgroupHTMLAttributes
  1087. option: OptionHTMLAttributes
  1088. output: OutputHTMLAttributes
  1089. p: HTMLAttributes
  1090. param: ParamHTMLAttributes
  1091. picture: HTMLAttributes
  1092. pre: HTMLAttributes
  1093. progress: ProgressHTMLAttributes
  1094. q: QuoteHTMLAttributes
  1095. rp: HTMLAttributes
  1096. rt: HTMLAttributes
  1097. ruby: HTMLAttributes
  1098. s: HTMLAttributes
  1099. samp: HTMLAttributes
  1100. script: ScriptHTMLAttributes
  1101. section: HTMLAttributes
  1102. select: SelectHTMLAttributes
  1103. small: HTMLAttributes
  1104. source: SourceHTMLAttributes
  1105. span: HTMLAttributes
  1106. strong: HTMLAttributes
  1107. style: StyleHTMLAttributes
  1108. sub: HTMLAttributes
  1109. summary: HTMLAttributes
  1110. sup: HTMLAttributes
  1111. table: TableHTMLAttributes
  1112. template: HTMLAttributes
  1113. tbody: HTMLAttributes
  1114. td: TdHTMLAttributes
  1115. textarea: TextareaHTMLAttributes
  1116. tfoot: HTMLAttributes
  1117. th: ThHTMLAttributes
  1118. thead: HTMLAttributes
  1119. time: TimeHTMLAttributes
  1120. title: HTMLAttributes
  1121. tr: HTMLAttributes
  1122. track: TrackHTMLAttributes
  1123. u: HTMLAttributes
  1124. ul: HTMLAttributes
  1125. var: HTMLAttributes
  1126. video: VideoHTMLAttributes
  1127. wbr: HTMLAttributes
  1128. webview: WebViewHTMLAttributes
  1129. // SVG
  1130. svg: SVGAttributes
  1131. animate: SVGAttributes
  1132. animateMotion: SVGAttributes
  1133. animateTransform: SVGAttributes
  1134. circle: SVGAttributes
  1135. clipPath: SVGAttributes
  1136. defs: SVGAttributes
  1137. desc: SVGAttributes
  1138. ellipse: SVGAttributes
  1139. feBlend: SVGAttributes
  1140. feColorMatrix: SVGAttributes
  1141. feComponentTransfer: SVGAttributes
  1142. feComposite: SVGAttributes
  1143. feConvolveMatrix: SVGAttributes
  1144. feDiffuseLighting: SVGAttributes
  1145. feDisplacementMap: SVGAttributes
  1146. feDistantLight: SVGAttributes
  1147. feDropShadow: SVGAttributes
  1148. feFlood: SVGAttributes
  1149. feFuncA: SVGAttributes
  1150. feFuncB: SVGAttributes
  1151. feFuncG: SVGAttributes
  1152. feFuncR: SVGAttributes
  1153. feGaussianBlur: SVGAttributes
  1154. feImage: SVGAttributes
  1155. feMerge: SVGAttributes
  1156. feMergeNode: SVGAttributes
  1157. feMorphology: SVGAttributes
  1158. feOffset: SVGAttributes
  1159. fePointLight: SVGAttributes
  1160. feSpecularLighting: SVGAttributes
  1161. feSpotLight: SVGAttributes
  1162. feTile: SVGAttributes
  1163. feTurbulence: SVGAttributes
  1164. filter: SVGAttributes
  1165. foreignObject: SVGAttributes
  1166. g: SVGAttributes
  1167. image: SVGAttributes
  1168. line: SVGAttributes
  1169. linearGradient: SVGAttributes
  1170. marker: SVGAttributes
  1171. mask: SVGAttributes
  1172. metadata: SVGAttributes
  1173. mpath: SVGAttributes
  1174. path: SVGAttributes
  1175. pattern: SVGAttributes
  1176. polygon: SVGAttributes
  1177. polyline: SVGAttributes
  1178. radialGradient: SVGAttributes
  1179. rect: SVGAttributes
  1180. stop: SVGAttributes
  1181. switch: SVGAttributes
  1182. symbol: SVGAttributes
  1183. text: SVGAttributes
  1184. textPath: SVGAttributes
  1185. tspan: SVGAttributes
  1186. use: SVGAttributes
  1187. view: SVGAttributes
  1188. }
  1189. export interface Events {
  1190. // clipboard events
  1191. onCopy: ClipboardEvent
  1192. onCut: ClipboardEvent
  1193. onPaste: ClipboardEvent
  1194. // composition events
  1195. onCompositionend: CompositionEvent
  1196. onCompositionstart: CompositionEvent
  1197. onCompositionupdate: CompositionEvent
  1198. // drag drop events
  1199. onDrag: DragEvent
  1200. onDragend: DragEvent
  1201. onDragenter: DragEvent
  1202. onDragexit: DragEvent
  1203. onDragleave: DragEvent
  1204. onDragover: DragEvent
  1205. onDragstart: DragEvent
  1206. onDrop: DragEvent
  1207. // focus events
  1208. onFocus: FocusEvent
  1209. onFocusin: FocusEvent
  1210. onFocusout: FocusEvent
  1211. onBlur: FocusEvent
  1212. // form events
  1213. onChange: Event
  1214. onBeforeinput: Event
  1215. onInput: Event
  1216. onReset: Event
  1217. onSubmit: Event
  1218. onInvalid: Event
  1219. // image events
  1220. onLoad: Event
  1221. onError: Event
  1222. // keyboard events
  1223. onKeydown: KeyboardEvent
  1224. onKeypress: KeyboardEvent
  1225. onKeyup: KeyboardEvent
  1226. // mouse events
  1227. onAuxclick: MouseEvent
  1228. onClick: MouseEvent
  1229. onContextmenu: MouseEvent
  1230. onDblclick: MouseEvent
  1231. onMousedown: MouseEvent
  1232. onMouseenter: MouseEvent
  1233. onMouseleave: MouseEvent
  1234. onMousemove: MouseEvent
  1235. onMouseout: MouseEvent
  1236. onMouseover: MouseEvent
  1237. onMouseup: MouseEvent
  1238. // media events
  1239. onAbort: Event
  1240. onCanplay: Event
  1241. onCanplaythrough: Event
  1242. onDurationchange: Event
  1243. onEmptied: Event
  1244. onEncrypted: Event
  1245. onEnded: Event
  1246. onLoadeddata: Event
  1247. onLoadedmetadata: Event
  1248. onLoadstart: Event
  1249. onPause: Event
  1250. onPlay: Event
  1251. onPlaying: Event
  1252. onProgress: Event
  1253. onRatechange: Event
  1254. onSeeked: Event
  1255. onSeeking: Event
  1256. onStalled: Event
  1257. onSuspend: Event
  1258. onTimeupdate: Event
  1259. onVolumechange: Event
  1260. onWaiting: Event
  1261. // selection events
  1262. onSelect: Event
  1263. // UI events
  1264. onScroll: UIEvent
  1265. // touch events
  1266. onTouchcancel: TouchEvent
  1267. onTouchend: TouchEvent
  1268. onTouchmove: TouchEvent
  1269. onTouchstart: TouchEvent
  1270. // pointer events
  1271. onPointerdown: PointerEvent
  1272. onPointermove: PointerEvent
  1273. onPointerup: PointerEvent
  1274. onPointercancel: PointerEvent
  1275. onPointerenter: PointerEvent
  1276. onPointerleave: PointerEvent
  1277. onPointerover: PointerEvent
  1278. onPointerout: PointerEvent
  1279. // wheel events
  1280. onWheel: WheelEvent
  1281. // animation events
  1282. onAnimationstart: AnimationEvent
  1283. onAnimationend: AnimationEvent
  1284. onAnimationiteration: AnimationEvent
  1285. // transition events
  1286. onTransitionend: TransitionEvent
  1287. onTransitionstart: TransitionEvent
  1288. }
  1289. type StringKeyOf<T> = Extract<keyof T, string>
  1290. type EventHandlers<E> = {
  1291. [K in StringKeyOf<E>]?: E[K] extends Function ? E[K] : (payload: E[K]) => void
  1292. }
  1293. // use namespace import to avoid collision with generated types which use
  1294. // named imports.
  1295. import * as RuntimeCore from '@vue/runtime-core'
  1296. type ReservedProps = {
  1297. key?: string | number
  1298. ref?:
  1299. | string
  1300. | RuntimeCore.Ref
  1301. | ((ref: Element | RuntimeCore.ComponentInternalInstance | null) => void)
  1302. }
  1303. type ElementAttrs<T> = T & ReservedProps
  1304. type NativeElements = {
  1305. [K in StringKeyOf<IntrinsicElementAttributes>]: ElementAttrs<
  1306. IntrinsicElementAttributes[K]
  1307. >
  1308. }
  1309. declare global {
  1310. namespace JSX {
  1311. interface Element {}
  1312. interface ElementClass {
  1313. $props: {}
  1314. }
  1315. interface ElementAttributesProperty {
  1316. $props: {}
  1317. }
  1318. interface IntrinsicElements extends NativeElements {
  1319. // allow arbitrary elements
  1320. // @ts-ignore suppress ts:2374 = Duplicate string index signature.
  1321. [name: string]: any
  1322. }
  1323. interface IntrinsicAttributes extends ReservedProps {}
  1324. }
  1325. }
  1326. // suppress ts:2669
  1327. export {}
  1328. // Note: this file is auto concatenated to the end of the bundled d.ts during
  1329. // build.
  1330. declare module '@vue/reactivity' {
  1331. export interface RefUnwrapBailTypes {
  1332. runtimeDOMBailTypes: Node | Window
  1333. }
  1334. }