]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
types(router): mark history and currentRoute as readonly
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 17 Apr 2020 09:38:15 +0000 (11:38 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 17 Apr 2020 09:38:15 +0000 (11:38 +0200)
src/router.ts

index 8be5ce13238ecb787be564214ae85238ebc72282..4e2ffa3776f9339aeae0c0371a0db0cc8b9f1bb8 100644 (file)
@@ -84,8 +84,8 @@ export interface RouterOptions {
 }
 
 export interface Router {
-  history: RouterHistory
-  currentRoute: Ref<RouteLocationNormalizedLoaded>
+  readonly history: RouterHistory
+  readonly currentRoute: Ref<RouteLocationNormalizedLoaded>
 
   addRoute(parentName: RouteRecordName, route: RouteRecordRaw): () => void
   addRoute(route: RouteRecordRaw): () => void