File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -32,4 +32,9 @@ declare module 'vue-router/auto' {
32
32
// export { defineColadaLoader } from 'unplugin-vue-router/data-loaders/pinia-colada'
33
33
}
34
34
35
+ // Make the macros globally available
36
+ declare global {
37
+ const definePage : ( typeof import ( 'unplugin-vue-router/runtime' ) ) [ 'definePage' ]
38
+ }
39
+
35
40
export { }
Original file line number Diff line number Diff line change 6
6
export { }
7
7
declare global {
8
8
const defineBasicLoader : typeof import ( 'unplugin-vue-router/data-loaders/basic' ) [ 'defineBasicLoader' ]
9
- const definePage : typeof import ( 'unplugin-vue-router/runtime' ) [ 'definePage' ]
10
9
const onBeforeRouteLeave : typeof import ( 'vue-router/auto' ) [ 'onBeforeRouteLeave' ]
11
10
const onBeforeRouteUpdate : typeof import ( 'vue-router/auto' ) [ 'onBeforeRouteUpdate' ]
12
11
const useRoute : typeof import ( 'vue-router/auto' ) [ 'useRoute' ]
Original file line number Diff line number Diff line change @@ -181,5 +181,5 @@ export const VueRouterAutoImports: Record<
181
181
// NOTE: the typing seems broken locally, so instead we export it directly from unplugin-vue-router/runtime
182
182
// 'definePage',
183
183
] ,
184
- 'unplugin-vue-router/runtime' : [ 'definePage' ] ,
184
+ 'unplugin-vue-router/runtime' : [ ] ,
185
185
}
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export * from './data-loaders'
13
13
* @deprecated - use `definePage` instead
14
14
*/
15
15
export const _definePage = ( route : DefinePage ) => route
16
+
16
17
/**
17
18
* Defines properties of the route for the current page component.
18
19
*
You can’t perform that action at this time.
0 commit comments