Open axe-me opened 6 years ago
i will just shim it for now i guess,
import { Route } from "vue-router";
export interface RouteState extends Route {
from: Route;
}
This issue seems to be about vue-router, not vuex-router-sync
?
There's no from
in Route type
@posva that is the problem, no from
in route type, but the store state has it: https://github.com/vuejs/vuex-router-sync/blob/master/src/index.js#L71 , and @LinusBorg I don't think this is a issue for vue-router
, since this library bind the from
property on the route object.
thus I believe we should shim it in the type definition file here https://github.com/vuejs/vuex-router-sync/blob/master/types/index.d.ts
i can make a PR if you guys think this is the right way to do, i have to shim it in my app anyway.
Ah, I see but don't add it to the Route type since it's only available in store module. Worst case is creating a new type and exporting it
prob should define a route typing for the state in this library?