Skip to content

Commit aa247f8

Browse files
committed
feat: Expose useRoute and useRouter for future compatibility with vue 3
1 parent 5400bba commit aa247f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { createRouter } from "./vue-router.common";
1+
import { createRouter, useRouter, useRoute } from "./vue-router.common";
22
export { Route, RouteOptions, RouterServiceOptions } from "./typings/router-service";
3-
export { createRouter };
3+
export { createRouter, useRouter, useRoute };

0 commit comments

Comments
 (0)