docs: types (#2186)

This commit is contained in:
Romain Hamel
2024-09-12 11:10:23 +02:00
committed by GitHub
parent 26e5ac80b6
commit 523493105e
19 changed files with 54 additions and 47 deletions

View File

@@ -72,7 +72,7 @@ export default defineNuxtModule({
.reduce((acc, component) => {
acc[component.pascalName] = component
return acc
}, {})
}, {} as Record<string, any>)
await stubOutput()
})
@@ -94,10 +94,10 @@ export default defineNuxtModule({
await fetchComponents()
await updateOutput()
},
configResolved(config) {
configResolved(config: any) {
_configResolved = config
},
async handleHotUpdate({ file }) {
async handleHotUpdate({ file }: { file: any }) {
if (
Object.entries(components).some(
([, comp]: any) => comp.filePath === file