jsx.d.ts 613 B

1234567891011121314151617181920
  1. // global JSX namespace registration
  2. // somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
  3. import type { NativeElements, ReservedProps, VNode } 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. [name: string]: any
  16. }
  17. export interface IntrinsicAttributes extends ReservedProps {}
  18. }
  19. }