mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
fix(types): add return type for error()
(#19044)
This commit is contained in:
parent
0b1a4d3841
commit
d1b95c324d
4
packages/types/app/index.d.ts
vendored
4
packages/types/app/index.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user