commit
bb7223e237
8
env.d.ts
vendored
8
env.d.ts
vendored
@ -1,4 +1,12 @@
|
|||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
|
|
||||||
|
// 添加 Vue 文件的类型声明
|
||||||
|
declare module '*.vue' {
|
||||||
|
import type { DefineComponent } from 'vue'
|
||||||
|
const component: DefineComponent<{}, {}, any>
|
||||||
|
export default component
|
||||||
|
}
|
||||||
|
|
||||||
declare module '*.md' {
|
declare module '*.md' {
|
||||||
import type { ComponentOptions } from 'vue'
|
import type { ComponentOptions } from 'vue'
|
||||||
import type { Frontmatter } from 'vite-plugin-md'
|
import type { Frontmatter } from 'vite-plugin-md'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user