fix(nuxt): correct types for nuxt and nuxt/app (#30148)

This commit is contained in:
Joaquín Sánchez 2024-12-09 11:49:39 +01:00 committed by Daniel Roe
parent a15b499582
commit de9ffe81a3
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
3 changed files with 10 additions and 2 deletions

View File

@ -1 +1 @@
export * from './dist/app/index.js'
export * from './dist/app/index'

View File

@ -43,6 +43,14 @@
"#app": {
"types": "./dist/app/index.d.ts",
"import": "./dist/app/index.js"
},
"#app/defaults": {
"types": "./dist/app/defaults.d.ts",
"import": "./dist/app/defaults.js"
},
"#app/nuxt": {
"types": "./dist/app/nuxt.d.ts",
"import": "./dist/app/nuxt.js"
}
},
"files": [

View File

@ -1,5 +1,5 @@
import type { UseHeadInput } from '@unhead/vue'
import type { NuxtApp, useNuxtApp } from '../nuxt'
import type { NuxtApp, useNuxtApp } from '../nuxt.js'
declare global {
namespace NodeJS {