15 lines
467 B
TypeScript
15 lines
467 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
// Vue 3 全局类型声明
|
|
declare global {
|
|
const defineProps: typeof import('vue')['defineProps']
|
|
const defineEmits: typeof import('vue')['defineEmits']
|
|
const defineExpose: typeof import('vue')['defineExpose']
|
|
const defineOptions: typeof import('vue')['defineOptions']
|
|
} |