fix(types): add return type for error() (#19044)

This commit is contained in:
Daniel Roe 2023-03-02 15:02:57 +00:00 committed by GitHub
parent 0b1a4d3841
commit d1b95c324d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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