2024-09-04 14:59:06 +08:00
|
|
|
import type Vue, { VNode } from 'vue';
|
2024-09-03 13:18:58 +08:00
|
|
|
|
2024-09-04 14:59:06 +08:00
|
|
|
declare module '*.tsx' {
|
|
|
|
import Vue from 'compatible-vue';
|
|
|
|
export default Vue;
|
2024-09-03 13:18:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
declare global {
|
2024-09-04 14:59:06 +08:00
|
|
|
namespace JSX {
|
|
|
|
interface Element extends VNode {}
|
|
|
|
|
|
|
|
interface ElementClass extends Vue {}
|
|
|
|
|
|
|
|
interface ElementAttributesProperty {
|
|
|
|
$props: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IntrinsicElements {
|
|
|
|
[elem: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IntrinsicAttributes {
|
|
|
|
[elem: string]: any;
|
|
|
|
}
|
|
|
|
}
|
2024-09-03 13:18:58 +08:00
|
|
|
}
|