From a0560ec645c034c04c08a45f83db304a46e915f2 Mon Sep 17 00:00:00 2001 From: userquin Date: Fri, 19 Sep 2025 14:42:02 +0200 Subject: [PATCH] chore(auto-resolver): add `vue-router/auto-resolver` module augmentation --- client.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client.d.ts b/client.d.ts index cfd519568..14e6110e0 100644 --- a/client.d.ts +++ b/client.d.ts @@ -1,3 +1,15 @@ +declare module 'vue-router/auto-resolver' { + import type { EXPERIMENTAL_RouterOptions, EXPERIMENTAL_Router } from 'vue-router/experimental' + + export function handleHotUpdate( + router: EXPERIMENTAL_Router + ): void + + const resolver: EXPERIMENTAL_RouterOptions['resolver'] + + export { resolver } +} + declare module 'vue-router/auto-routes' { import type { RouteRecordRaw, Router } from 'vue-router'