Skip to content

Commit

Permalink
build(unplugin): enable dts for global component def. generation (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
pataar authored Feb 16, 2022
1 parent 027422b commit dfa3abc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ declare module 'vue' {
MoonrakerStatePanel: typeof import('./src/components/panels/MoonrakerStatePanel.vue')['default']
MotionSettings: typeof import('./src/components/panels/MachineSettings/MotionSettings.vue')['default']
MotionSettingsInput: typeof import('./src/components/inputs/MotionSettingsInput.vue')['default']
NumberInput: typeof import('./src/components/inputs/NumberInput.vue')['default']
Panel: typeof import('./src/components/ui/Panel.vue')['default']
PowerControlPanel: typeof import('./src/components/panels/PowerControlPanel.vue')['default']
PressureAdvanceSettings: typeof import('./src/components/panels/MachineSettings/PressureAdvanceSettings.vue')['default']
Expand Down Expand Up @@ -140,6 +141,7 @@ declare module 'vue' {
VProgressLinear: typeof import('vuetify/lib')['VProgressLinear']
VRow: typeof import('vuetify/lib')['VRow']
VSelect: typeof import('vuetify/lib')['VSelect']
VSimpleCheckbox: typeof import('vuetify/lib')['VSimpleCheckbox']
VSimpleTable: typeof import('vuetify/lib')['VSimpleTable']
VSlider: typeof import('vuetify/lib')['VSlider']
VSnackbar: typeof import('vuetify/lib')['VSnackbar']
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
]
},
"include": [
"components.d.ts",
"src/**/*.ts",
"src/**/*.tsx",
"src/**/*.vue",
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
loadVersion(),
checker({ typescript: true }),
Components({
dts: true, // enabled by default if `typescript` is installed
resolvers: [VuetifyResolver()],
}),
],
Expand Down

0 comments on commit dfa3abc

Please sign in to comment.