Skip to content

Commit 16ead02

Browse files
committed
refactor: remove redundant exports
1 parent 4511f39 commit 16ead02

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

Diff for: src/composables/index.js

-6
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,3 @@ function throwNoCurrentInstance (method) {
112112
`[vue-router]: Missing current instance. ${method}() must be called inside <script setup> or setup().`
113113
)
114114
}
115-
116-
export { default as default } from '../index'
117-
export { default as RouterLink } from '../components/link'
118-
export { default as RouterView } from '../components/view'
119-
export { NavigationFailureType, isNavigationFailure } from '../util/errors'
120-
export { START as START_LOCATION } from '../util/route'

Diff for: types/composables.d.ts

-25
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,3 @@ export declare function onBeforeRouteUpdate(updateGuard: NavigationGuard): void
2020
* @param leaveGuard NavigationGuard
2121
*/
2222
export declare function onBeforeRouteLeave(leaveGuard: NavigationGuard): void
23-
24-
export {
25-
type RouterMode,
26-
type RouteMeta,
27-
type RawLocation,
28-
type RedirectOption,
29-
type RouterOptions,
30-
type RouteConfig,
31-
type RouteRecord,
32-
type RouteRecordPublic,
33-
type Location,
34-
type Route,
35-
type NavigationGuard,
36-
type NavigationGuardNext,
37-
type NavigationFailure,
38-
NavigationFailureType,
39-
isNavigationFailure,
40-
START_LOCATION,
41-
type RouterViewProps,
42-
RouterView,
43-
type RouterLinkProps,
44-
type RouterLinkSlotArgument,
45-
RouterLink,
46-
VueRouter as default,
47-
} from './router'

0 commit comments

Comments
 (0)