mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
fix vue-router
This commit is contained in:
@@ -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>();
|
||||
|
||||
|
||||
Vendored
+4
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user