Skip to content

Commit

Permalink
fix(nuxt): provide default data type values in nuxt/app dir (nuxt#27314)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored May 22, 2024
1 parent 2efaa26 commit f256210
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 0 additions & 6 deletions packages/nuxt/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,4 @@ declare global {
}
}

declare module '#app/defaults' {
type DefaultAsyncDataErrorValue = undefined
type DefaultAsyncDataValue = undefined
type DefaultErrorValue = undefined
}

export {}
2 changes: 0 additions & 2 deletions packages/nuxt/src/app/defaults.js

This file was deleted.

7 changes: 7 additions & 0 deletions packages/nuxt/src/app/defaults.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// TODO: temporary module for backwards compatibility

export type DefaultAsyncDataErrorValue = null
export type DefaultAsyncDataValue = null
export type DefaultErrorValue = null

export {}

0 comments on commit f256210

Please sign in to comment.