Skip to content

Commit cad978a

Browse files
committed
feat(types): expose RouterLink and RouterView in d.ts
1 parent e5e6bc5 commit cad978a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types/index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import './vue'
2-
import { VueRouter } from './router'
2+
import { VueRouter, RouterLink, RouterView } from './router'
33

44
export default VueRouter
5+
// TODO: does this really work with the new keyword?
6+
export { RouterView, RouterLink }
57

68
export type {
79
RouterMode,

0 commit comments

Comments
 (0)