Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /