Skip to content

Commit

Permalink
Annotates the modules parameter as optional now that it is backwards …
Browse files Browse the repository at this point in the history
…compatible
  • Loading branch information
Roustalski committed Oct 4, 2016
1 parent 235c165 commit e6accee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ function validateRouteConfig(config: RouteConfig, routes: Array<Object>): void {
}

function evaluateNavigationStrategy(instruction: NavigationInstruction, evaluator: Function, context: any): Promise<NavigationInstruction> {
return Promise.resolve(evaluator.call(context, instruction)).then((modules: string | {[viewportname: string]: moduleId}) => {
return Promise.resolve(evaluator.call(context, instruction)).then((modules?: string | {[viewportname: string]: moduleId}) => {
if (!('viewPorts' in instruction.config)) {
instruction.config.viewPorts = {};
}
Expand Down

0 comments on commit e6accee

Please sign in to comment.