vue-pure-admin2/types/shims-tsx.d.ts

23 lines
446 B
TypeScript
Raw Normal View History

2021-07-20 17:16:42 +08:00
import Vue, { VNode } from "vue";
2021-07-20 17:16:42 +08:00
declare module "*.tsx" {
import Vue from "compatible-vue";
export default Vue;
}
declare global {
namespace JSX {
2021-07-20 17:16:42 +08:00
interface Element extends VNode {}
interface ElementClass extends Vue {}
2022-11-25 12:49:38 +08:00
interface ElementAttributesProperty {
$props: any;
}
interface IntrinsicElements {
2021-07-20 17:16:42 +08:00
[elem: string]: any;
}
2022-11-25 12:49:38 +08:00
interface IntrinsicAttributes {
[elem: string]: any;
}
}
}