-
-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
- Overview of the Issue: router navigateToRoute() previously has a return signature type of
Promise<PipelineResult | boolean>, thenNavigationResultand most recentlyboolean(version 1.7.1). - Motivation or Use Case:
- Upgrading from earlier versions to latest results in build failure in projects enforcing tslint rule "await-promise".
- Code relying upon navigateToRoute as an awaitable function require refactoring
- Library Name and Version(s): aurelia-router, router.ts version 1.7.1 (current)
- Browsers and Operating System: N/A (build issue)
- Reproduce the Error: Build an application with lines below using aurelia-router version 1.7.1 and tslint "await-promise" rule turned on
- Related Issues: None found
- Suggest a Fix: Revert return signature change, or explain reason for change to return type
boolean.
router/dist/aurelia-router.d.ts
Line 300 in 893b768
| navigateToRoute(route: string, params?: any, options?: NavigationOptions): boolean; |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels