Skip to content

Commit a2af342

Browse files
Merge pull request #477 from TylerBrinkley/patch-1
doc(cheat-sheet): change AuthorizeStep's next parameter type
2 parents efb55e7 + 68d7e95 commit a2af342

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/article/en-US/cheat-sheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ The `params` object will have a property for each parameter of the route that wa
10341034
}
10351035
</source-code>
10361036
<source-code lang="TypeScript">
1037-
import {Redirect, NavigationInstruction, RouterConfiguration} from 'aurelia-router';
1037+
import {Redirect, NavigationInstruction, RouterConfiguration, Next} from 'aurelia-router';
10381038

10391039
export class App {
10401040
configureRouter(config: RouterConfiguration): void {
@@ -1050,7 +1050,7 @@ The `params` object will have a property for each parameter of the route that wa
10501050
}
10511051

10521052
class AuthorizeStep {
1053-
run(navigationInstruction: NavigationInstruction, next: Function): Promise<any> {
1053+
run(navigationInstruction: NavigationInstruction, next: Next): Promise<any> {
10541054
if (navigationInstruction.getAllInstructions().some(i => i.config.auth)) {
10551055
var isLoggedIn = /* insert magic here */false;
10561056
if (!isLoggedIn) {

0 commit comments

Comments
 (0)