Using the latest, I bumped into the following issues:
-
beforeModel and afterModel (a) should be generic and (b) are overly strict. Should probably be something like this:
beforeModel<T>(transition: Transition): Rsvp.Promise<T>;
beforeModel(transition: Transition): void;
-
Similarly, model should probably be something like
model<T>(params: {}, transition: Transition): T | Rsvp.Promise<T>;
model(params: {}, transition: Transition): void;
I also ran into issues with the ActionsHash bits combined with the user of Route.extend(SomeMixin), but I strongly suspect the mixin pattern is to blame there, rather than the Route definition.
Using the latest, I bumped into the following issues:
beforeModelandafterModel(a) should be generic and (b) are overly strict. Should probably be something like this:Similarly,
modelshould probably be something likeI also ran into issues with the
ActionsHashbits combined with the user ofRoute.extend(SomeMixin), but I strongly suspect the mixin pattern is to blame there, rather than theRoutedefinition.