Skip to content

Commit efad911

Browse files
committed
types(router): mark history and currentRoute as readonly
1 parent 66b2db9 commit efad911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ export interface RouterOptions {
8484
}
8585

8686
export interface Router {
87-
history: RouterHistory
88-
currentRoute: Ref<RouteLocationNormalizedLoaded>
87+
readonly history: RouterHistory
88+
readonly currentRoute: Ref<RouteLocationNormalizedLoaded>
8989

9090
addRoute(parentName: RouteRecordName, route: RouteRecordRaw): () => void
9191
addRoute(route: RouteRecordRaw): () => void

0 commit comments

Comments
 (0)