mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(nuxt): provide default data type values in nuxt/app dir (#27314)
This commit is contained in:
parent
2efaa269ee
commit
f256210d55
6
packages/nuxt/index.d.ts
vendored
6
packages/nuxt/index.d.ts
vendored
@ -19,10 +19,4 @@ declare global {
|
||||
}
|
||||
}
|
||||
|
||||
declare module '#app/defaults' {
|
||||
type DefaultAsyncDataErrorValue = undefined
|
||||
type DefaultAsyncDataValue = undefined
|
||||
type DefaultErrorValue = undefined
|
||||
}
|
||||
|
||||
export {}
|
||||
|
@ -1,2 +0,0 @@
|
||||
// TODO: temporary module for backwards compatibility
|
||||
export {}
|
7
packages/nuxt/src/app/defaults.ts
Normal file
7
packages/nuxt/src/app/defaults.ts
Normal file
@ -0,0 +1,7 @@
|
||||
// TODO: temporary module for backwards compatibility
|
||||
|
||||
export type DefaultAsyncDataErrorValue = null
|
||||
export type DefaultAsyncDataValue = null
|
||||
export type DefaultErrorValue = null
|
||||
|
||||
export {}
|
Loading…
Reference in New Issue
Block a user