jsx.d.ts 686 B

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