-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navigateToRoute return signature change - no longer a Promise? #648
Comments
Ping @davismj |
If i understand correctly, returning a |
The typing is in fact wrong. After quickly tracing through, I want to say it should be |
Thanks for the initial investigation @davismj |
@davismj @EisenbergEffect I'd be happy to submit a PR for this. I'm not sure where the CLA is that I need to sign. The CONTRIBUTING.md in this project sends me to: http://goo.gl/forms/dI8QDDSyKR Which says "Sorry, the file you have requested does not exist.": |
Please feel free to submit a PR :) When you submit the PR, Github will check our CLA sig list and prompt you with the proper way to sign. Sorry about the bad link. I thought I had that updated everywhere after we switched over to CLA Assistant. I'll get that fixed soon. |
Hi, and again... Aurelia version:
method this.router.navigateToRoute and this.router.navigate are return both a Promise not the boolean :(
If the bug is fixed how i can update aurelia-router.d.ts? |
@Calabonga let me have a look at this. From what I remember, the signature was wrong, and boolean was a fix |
@bigopon , @matthewcorven Thanks for your quick answers, but...
|
@Calabonga I think this is the best-matching signature, but ultimately I'm looking to @davismj and @bigopon to validate. Line 323 in 1725837
|
@bigopon I think so too! Thanks. I'll be waiting. |
@matthewcorven @Calabonga @davismj on the surface, export type NavigationResult = boolean | Promise<PipelineResult | void>; It's not too far off compared to what we have at the moment in the comment #648 (comment), so I think we can keep it in the current shape for now. We could refactor more, but there's concern that big refactoring without major semver change would destabilize the router, while providing not big enough value to justify it. We will still fix critical bug though. So, ... sorry for the issue 😓 |
Thanks. I'll try to refactor my logic yet. |
Any update @Calabonga ? |
Promise<PipelineResult | boolean>
, thenNavigationResult
and most recentlyboolean
(version 1.7.1).boolean
.router/dist/aurelia-router.d.ts
Line 300 in 893b768
The text was updated successfully, but these errors were encountered: