shim-tsx.d.ts 600 B

12345678910111213141516171819202122232425
  1. import type { ComponentRenderProxy, VNode } from 'vue';
  2. declare module '*.tsx' {
  3. import { defineComponent } from 'vue';
  4. const component: ReturnType<defineComponent>;
  5. export default component;
  6. }
  7. declare global {
  8. namespace JSX {
  9. // tslint:disable no-empty-interface
  10. type Element = VNode;
  11. // tslint:disable no-empty-interface
  12. type ElementClass = ComponentRenderProxy;
  13. interface ElementAttributesProperty {
  14. $props: any;
  15. }
  16. interface IntrinsicElements {
  17. [elem: string]: any;
  18. }
  19. interface IntrinsicAttributes {
  20. [elem: string]: any;
  21. }
  22. }
  23. }