runtime-dom.d.ts 39 KB

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