HerringtonDarkholme / av-ts

A modern, type-safe, idiomatic Vue binding library
MIT License
216 stars 11 forks source link

@Lifecycle problem #66

Closed Muscipular closed 7 years ago

Muscipular commented 7 years ago

typeof 'beforeRouteEnter' | 'beforeRouteLeave' | 'beforeRouteUpdate' should be TypedPropertyDescriptor<(to, from, next: ((vm) => void) | (() => void)) => void>

Muscipular commented 7 years ago

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