fix(nuxt3): add imports.d.ts to nuxt.d.ts (#2399)

This commit is contained in:
Daniel Roe 2021-12-17 09:25:40 +00:00 committed by GitHub
parent 6c1cb11b95
commit d3e27874f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,7 @@ export default defineNuxtModule<AutoImportsOptions>({
// Add generated types to `nuxt.d.ts`
nuxt.hook('prepare:types', ({ references }) => {
references.push({ path: resolve(nuxt.options.buildDir, 'auto-imports.d.ts') })
references.push({ path: resolve(nuxt.options.buildDir, 'imports.d.ts') })
})
// Watch composables/ directory