fix vue-router

This commit is contained in:
Kaoru Hagihara
2015-12-27 21:47:10 +09:00
parent 1310d29845
commit f64dd4dbd2
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -19,6 +19,10 @@ namespace TestBasic {
});
var App = Vue.extend({});
var app = new App();
app.$on("some event", function() {
var name: string = app.$route.name;
});
var router = new VueRouter<typeof App.prototype>();
+4
View File
@@ -75,6 +75,10 @@ declare namespace vuerouter {
}
declare namespace vuejs {
interface Vue {
$route: vuerouter.$route<any, any, any>;
}
interface ComponentOption {
route?: vuerouter.TransitionHook<any, any, any, any, any>;
}