mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt3): add imports.d.ts
to nuxt.d.ts
(#2399)
This commit is contained in:
parent
6c1cb11b95
commit
d3e27874f5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user