mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +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
|
config: NuxtRuntimeConfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
error(params: NuxtError): void
|
error(params: NuxtError): NuxtError
|
||||||
nuxtState: NuxtState
|
nuxtState: NuxtState
|
||||||
beforeNuxtRender(fn: (params: { Components: VueRouter['getMatchedComponents'], nuxtState: NuxtState }) => void): void
|
beforeNuxtRender(fn: (params: { Components: VueRouter['getMatchedComponents'], nuxtState: NuxtState }) => void): void
|
||||||
beforeSerialize(fn: (nuxtState: NuxtState) => void): void
|
beforeSerialize(fn: (nuxtState: NuxtState) => void): void
|
||||||
@ -156,7 +156,7 @@ export interface NuxtApp extends Vue {
|
|||||||
nbFetching: number
|
nbFetching: number
|
||||||
isFetching: boolean
|
isFetching: boolean
|
||||||
context: Context
|
context: Context
|
||||||
error(params: NuxtError): void
|
error(params: NuxtError): NuxtError
|
||||||
isOffline: boolean
|
isOffline: boolean
|
||||||
isOnline: boolean
|
isOnline: boolean
|
||||||
layout: any // TBD
|
layout: any // TBD
|
||||||
|
Loading…
Reference in New Issue
Block a user