mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-04 12:10:30 +08:00
fix vue-router
This commit is contained in:
1 parent
1310d29845
commit
f64dd4dbd2
2 files changed
+8
No files matched your search
@@ -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