fix(router): Use T type in Resolve interface (#13242)

This commit is contained in:
Jónatan Núñez
2016-12-08 20:24:38 +01:00
committed by Victor Berchet
parent 21de0f239d
commit 5ee8155e4e
3 changed files with 3 additions and 4 deletions

View File

@ -172,7 +172,7 @@ export declare function provideRoutes(routes: Routes): any;
/** @stable */
export interface Resolve<T> {
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<any> | Promise<any> | any;
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<T> | Promise<T> | T;
}
/** @stable */