jsx.d.ts 722 B

1234567891011121314151617181920212223242526
  1. // global JSX namespace registration
  2. // somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
  3. import type {
  4. VNode,
  5. IntrinsicElementAttributes,
  6. ReservedProps,
  7. NativeElements
  8. } from '@vue/runtime-dom'
  9. declare global {
  10. namespace JSX {
  11. export interface Element extends VNode {}
  12. export interface ElementClass {
  13. $props: {}
  14. }
  15. export interface ElementAttributesProperty {
  16. $props: {}
  17. }
  18. export interface IntrinsicElements extends NativeElements {
  19. // allow arbitrary elements
  20. // @ts-ignore suppress ts:2374 = Duplicate string index signature.
  21. [name: string]: any
  22. }
  23. export interface IntrinsicAttributes extends ReservedProps {}
  24. }
  25. }