30 lines
611 B
TypeScript
30 lines
611 B
TypeScript
|
|
/// <reference types="vite/client" />
|
||
|
|
|
||
|
|
import type { VNode } from 'vue';
|
||
|
|
|
||
|
|
declare module '*.vue' {
|
||
|
|
import type { DefineComponent } from 'vue';
|
||
|
|
|
||
|
|
const component: DefineComponent<object, object, unknown>;
|
||
|
|
export default component;
|
||
|
|
}
|
||
|
|
|
||
|
|
// Override JSX namespace for Vue
|
||
|
|
declare global {
|
||
|
|
namespace JSX {
|
||
|
|
interface Element extends VNode {}
|
||
|
|
interface ElementClass {
|
||
|
|
$props: object
|
||
|
|
}
|
||
|
|
interface ElementAttributesProperty {
|
||
|
|
$props: object
|
||
|
|
}
|
||
|
|
interface IntrinsicElements {
|
||
|
|
[elem: string]: any
|
||
|
|
}
|
||
|
|
interface IntrinsicAttributes {
|
||
|
|
[elem: string]: any
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|