index.d.ts 782 B

123456789101112131415161718192021222324
  1. import type { VNode, ReservedProps, NativeElements } 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 } 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. // @ts-ignore suppress ts:2374 = Duplicate string index signature.
  19. [name: string]: any
  20. }
  21. export interface IntrinsicAttributes extends ReservedProps {}
  22. }