-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathshims.d.ts
38 lines (33 loc) · 968 Bytes
/
shims.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
declare interface Window {
// extend the window
}
// with vite-plugin-vue-markdown, markdown files can be treated 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
}
// Vite plugin to load SVG files as Vue components
declare module 'vite-svg-loader' {
import { Plugin } from 'vite'
function svgLoader(options?: { svgoConfig?: Object, svgo?: boolean }): Plugin
export default svgLoader
}
declare module '*.svg?component' {
import { FunctionalComponent, SVGAttributes } from 'vue'
const src: FunctionalComponent<SVGAttributes>
export default src
}
declare module '*.svg?url' {
const src: String
export default src
}
declare module '*.svg?raw' {
const src: String
export default src
}