chore(docs): place components.d.ts in .vitepress dir

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent d1a9abbf6f
commit 73ce6f207b
3 changed files with 23 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@
"author": "Burak Cakmakoglu<brainbraks@googlemail.com>",
"scripts": {
"dev": "vuepress dev src",
"prebuild": "yarn data",
"build": "vuepress build src",
"serve": "vuepress serve",
"data": "node data.js"
+21
View File
@@ -0,0 +1,21 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399
declare module 'vue' {
export interface GlobalComponents {
Additional: typeof import('./../../components/home/Additional.vue')['default']
Banner: typeof import('./../../components/home/Banner.vue')['default']
Basic: typeof import('./../../components/home/Basic.vue')['default']
Box: typeof import('./../../components/home/nodes/Box.vue')['default']
Custom: typeof import('./../../components/home/edges/Custom.vue')['default']
Features: typeof import('./../../components/home/Features.vue')['default']
Home: typeof import('./../../components/home/Home.vue')['default']
Input: typeof import('./../../components/home/nodes/Input.vue')['default']
Nested: typeof import('./../../components/home/Nested.vue')['default']
Output: typeof import('./../../components/home/nodes/Output.vue')['default']
RGB: typeof import('./../../components/home/RGB.vue')['default']
}
}
export { }
+1
View File
@@ -35,6 +35,7 @@ export default defineUserConfig<DefaultThemeOptions>({
extensions: ['vue', 'md'],
// allow auto import and register components used in markdown
include: [/\.vue$/, /\.vue\?vue/, /\.md$/],
dts: resolve(__dirname, './components.d.ts'),
}),
Icons(),
],