ref: https://staging.vuejs.org/guide/typescript/overview.html#typescript-in-templates
17 lines
412 B
TypeScript
17 lines
412 B
TypeScript
declare interface Window {
|
|
// extend the window
|
|
}
|
|
|
|
// with vite-plugin-md, markdowns can be treat as Vue components
|
|
declare module '*.md' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|