Skip to content

Commit 45b6842

Browse files
committed
chore: turns out the declare module is needed for the moment to let ts merge
1 parent 4f1a37a commit 45b6842

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed
Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
import type {
2-
EXPERIMENTAL_Router,
3-
EXPERIMENTAL_RouterOptions,
4-
} from 'vue-router/experimental'
1+
declare module 'vue-router/auto-resolver' {
2+
import type {
3+
EXPERIMENTAL_Router,
4+
EXPERIMENTAL_RouterOptions,
5+
} from 'vue-router/experimental'
56

6-
/**
7-
* Handles HMR.
8-
* Generated by unplugin-vue-router
9-
*/
10-
export declare function handleHotUpdate(router: EXPERIMENTAL_Router): void
7+
/**
8+
* Handles HMR.
9+
* Generated by unplugin-vue-router
10+
*/
11+
export function handleHotUpdate(router: EXPERIMENTAL_Router): void
1112

12-
/**
13-
* Custom resolver automatically generated at build time
14-
* Generated by unplugin-vue-router
15-
*/
16-
export declare const resolver: EXPERIMENTAL_RouterOptions['resolver']
13+
/**
14+
* Custom resolver automatically generated at build time
15+
* Generated by unplugin-vue-router
16+
*/
17+
export const resolver: EXPERIMENTAL_RouterOptions['resolver']
18+
}

0 commit comments

Comments
 (0)