From 2f0c430a7ce6ec886e32f2e0c2cbf8fc62cb6441 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Tue, 17 Sep 2024 14:36:00 +0300 Subject: [PATCH 1/2] fix(app-vite): augment vue instead of vue/runtime-core (fix #17416) --- app-vite/types/prefetch.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-vite/types/prefetch.d.ts b/app-vite/types/prefetch.d.ts index d701b1d640c..472ae97f7c6 100644 --- a/app-vite/types/prefetch.d.ts +++ b/app-vite/types/prefetch.d.ts @@ -16,7 +16,7 @@ export type PrefetchCallback = ( options: PreFetchOptions ) => void | Promise | Promise<{}>; -declare module "@vue/runtime-core" { +declare module "vue" { interface ComponentCustomOptions { preFetch?: PrefetchCallback; } From 27a5cf51b0f409e141873319c4615506ef900d14 Mon Sep 17 00:00:00 2001 From: Yusuf Kandemir Date: Tue, 17 Sep 2024 14:36:11 +0300 Subject: [PATCH 2/2] fix(app-webpack): augment vue instead of vue/runtime-core (fix #17416) --- app-webpack/types/prefetch.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app-webpack/types/prefetch.d.ts b/app-webpack/types/prefetch.d.ts index d701b1d640c..472ae97f7c6 100644 --- a/app-webpack/types/prefetch.d.ts +++ b/app-webpack/types/prefetch.d.ts @@ -16,7 +16,7 @@ export type PrefetchCallback = ( options: PreFetchOptions ) => void | Promise | Promise<{}>; -declare module "@vue/runtime-core" { +declare module "vue" { interface ComponentCustomOptions { preFetch?: PrefetchCallback; }