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 GitHub
parent bfcf80a12a
commit f04c6154ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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": { "#app": {
"types": "./dist/app/index.d.ts", "types": "./dist/app/index.d.ts",
"import": "./dist/app/index.js" "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": [ "files": [

View File

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