From d1b95c324d92d5ed47b933e3624d7c401b249e6d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 2 Mar 2023 15:02:57 +0000 Subject: [PATCH] fix(types): add return type for `error()` (#19044) --- packages/types/app/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/app/index.d.ts b/packages/types/app/index.d.ts index 9e565335a3..d4cdfdf86f 100644 --- a/packages/types/app/index.d.ts +++ b/packages/types/app/index.d.ts @@ -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