index.d.ts 818 B

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