Skip to content

Commit

Permalink
fix(types): add return type for error() (#19044)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 2, 2023
1 parent 0b1a4d3 commit d1b95c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/types/app/index.d.ts
Expand Up @@ -78,7 +78,7 @@ export interface Context {
config: NuxtRuntimeConfig
}
}
error(params: NuxtError): void
error(params: NuxtError): NuxtError
nuxtState: NuxtState
beforeNuxtRender(fn: (params: { Components: VueRouter['getMatchedComponents'], nuxtState: NuxtState }) => void): void
beforeSerialize(fn: (nuxtState: NuxtState) => void): void
Expand Down Expand Up @@ -156,7 +156,7 @@ export interface NuxtApp extends Vue {
nbFetching: number
isFetching: boolean
context: Context
error(params: NuxtError): void
error(params: NuxtError): NuxtError
isOffline: boolean
isOnline: boolean
layout: any // TBD
Expand Down

0 comments on commit d1b95c3

Please sign in to comment.