Skip to content

route state not compatible with typing definition from vue router #84

@axe-me

Description

@axe-me
  import { Route } from "vue-router";

  @Watch("route")
  onRouteChanged(currRoute: Route) {
    if (currRoute.meta.parentRoute) {
      // got ts error at this line saying: 'Property 'from' does not exist on type 'Route'.'
      this.buttonText = currRoute.from.name;
      this.routeName = null;
      this.show = true;
    } else {
      this.show = false;
    }
  }

prob should define a route typing for the state in this library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions