vue-app-env.d.ts 607 B

12345678910111213141516171819202122232425
  1. declare module '*.vue' {
  2. import { defineComponent } from 'vue';
  3. const Component: ReturnType<typeof defineComponent>;
  4. export default Component;
  5. }
  6. import type { ComponentRenderProxy, VNode } from 'vue';
  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. }