Blame view

src/types/vue-app-env.d.ts 607 Bytes
vben authored
1
2
3
4
5
declare module '*.vue' {
  import { defineComponent } from 'vue';
  const Component: ReturnType<typeof defineComponent>;
  export default Component;
}
vben authored
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

import type { ComponentRenderProxy, VNode } from 'vue';

declare global {
  namespace JSX {
    // tslint:disable no-empty-interface
    type Element = VNode;
    // tslint:disable no-empty-interface
    type ElementClass = ComponentRenderProxy;
    interface ElementAttributesProperty {
      $props: any;
    }
    interface IntrinsicElements {
      [elem: string]: any;
    }
    interface IntrinsicAttributes {
      [elem: string]: any;
    }
  }
}