Closed Muscipular closed 7 years ago
typeof 'beforeRouteEnter' | 'beforeRouteLeave' | 'beforeRouteUpdate' should be TypedPropertyDescriptor<(to, from, next: ((vm) => void) | (() => void)) => void>
sorry, it's my mistake.
type RouteNextArgType<T extends Vue> = string | false | ((t: T) => void) | { path: string } type RouteNextFnType<T extends Vue> = (t?: RouteNextArgType<T>) => void;
this is correctly
typeof 'beforeRouteEnter' | 'beforeRouteLeave' | 'beforeRouteUpdate' should be TypedPropertyDescriptor<(to, from, next: ((vm) => void) | (() => void)) => void>