vue-vben-admin/src/types/shim-tsx.d.ts

26 lines
600 B
TypeScript
Raw Normal View History

2020-10-30 21:32:05 +08:00
import type { ComponentRenderProxy, VNode } from 'vue';
2020-09-28 20:19:10 +08:00
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 {
2020-11-21 22:47:10 +08:00
$props: any;
2020-09-28 20:19:10 +08:00
}
interface IntrinsicElements {
[elem: string]: any;
}
interface IntrinsicAttributes {
[elem: string]: any;
}
}
}