fix(router): make locationSyncBootstrapListener public due to change in output after TS 2.7 update in #22669 (#22896)

PR Close #22896
This commit is contained in:
Jason Aden 2018-03-20 13:56:47 -07:00 committed by Igor Minar
parent 17fb9832f4
commit 623d769858
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ import {UpgradeModule} from '@angular/upgrade/static';
export const RouterUpgradeInitializer = { export const RouterUpgradeInitializer = {
provide: APP_BOOTSTRAP_LISTENER, provide: APP_BOOTSTRAP_LISTENER,
multi: true, multi: true,
useFactory: locationSyncBootstrapListener, useFactory: locationSyncBootstrapListener as(ngUpgrade: UpgradeModule) => () => void,
deps: [UpgradeModule] deps: [UpgradeModule]
}; };

View File

@ -2,7 +2,7 @@
export declare const RouterUpgradeInitializer: { export declare const RouterUpgradeInitializer: {
provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>; provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
multi: boolean; multi: boolean;
useFactory: typeof locationSyncBootstrapListener; useFactory: (ngUpgrade: UpgradeModule) => () => void;
deps: (typeof UpgradeModule)[]; deps: (typeof UpgradeModule)[];
}; };