mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nuxt): correct types for nuxt
and nuxt/app
(#30148)
This commit is contained in:
parent
bfcf80a12a
commit
f04c6154ed
2
packages/nuxt/app.d.ts
vendored
2
packages/nuxt/app.d.ts
vendored
@ -1 +1 @@
|
|||||||
export * from './dist/app/index.js'
|
export * from './dist/app/index'
|
||||||
|
@ -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": [
|
||||||
|
2
packages/nuxt/src/app/types/augments.d.ts
vendored
2
packages/nuxt/src/app/types/augments.d.ts
vendored
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user