index.d.ts 859 B

12345678910111213141516171819202122232425
  1. import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
  2. /**
  3. * JSX namespace for usage with @jsxImportsSource directive
  4. * when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
  5. * https://www.typescriptlang.org/tsconfig#jsxImportSource
  6. */
  7. export { h as jsx, h as jsxDEV, Fragment, h as jsxs } from '@vue/runtime-dom'
  8. export namespace JSX {
  9. export interface Element extends VNode {}
  10. export interface ElementClass {
  11. $props: {}
  12. }
  13. export interface ElementAttributesProperty {
  14. $props: {}
  15. }
  16. export interface IntrinsicElements extends NativeElements {
  17. // allow arbitrary elements
  18. // oxlint-disable-next-line typescript/prefer-ts-expect-error
  19. // @ts-ignore suppress ts:2374 = Duplicate string index signature.
  20. [name: string]: any
  21. }
  22. export interface IntrinsicAttributes extends ReservedProps {}
  23. }