Blame view

src/types/shim-tsx.d.ts 600 Bytes
vben authored
1
import type { ComponentRenderProxy, VNode } from 'vue';
陈文彬 authored
2
3
4
5
6
7
8
9
10
11
12
13
14
15

declare module '*.tsx' {
  import { defineComponent } from 'vue';
  const component: ReturnType<defineComponent>;
  export default component;
}

declare global {
  namespace JSX {
    // tslint:disable no-empty-interface
    type Element = VNode;
    // tslint:disable no-empty-interface
    type ElementClass = ComponentRenderProxy;
    interface ElementAttributesProperty {
16
      $props: any;
陈文彬 authored
17
18
19
20
21
22
23
24
25
    }
    interface IntrinsicElements {
      [elem: string]: any;
    }
    interface IntrinsicAttributes {
      [elem: string]: any;
    }
  }
}