Skip to content

Commit

Permalink
fix(typings): Fix typing error in uiRouterUpgradeFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Oct 7, 2017
1 parent ae9b597 commit f361d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/angular-hybrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class UIViewNgUpgrade {

// Register the ng1 DI '$uiRouter' object as an ng2 Provider.
export function uiRouterUpgradeFactory(router: UIRouter, injector: Injector) {
const modules: StatesModule[] = injector.get(UIROUTER_MODULE_TOKEN, []);
const modules: StatesModule[] = injector.get<StatesModule[]>(UIROUTER_MODULE_TOKEN, []);
modules.forEach(module => applyModuleConfig(router, injector, module));
return router;
}
Expand Down

0 comments on commit f361d7a

Please sign in to comment.