Skip to content

Commit

Permalink
docs(router): provide better typing for resolver example (#44932)
Browse files Browse the repository at this point in the history
PR Close #44932
  • Loading branch information
markostanimirovic authored and thePunderWoman committed Feb 1, 2022
1 parent b4e4617 commit ec49796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/router/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export type CanDeactivateFn<T> =
* resolve(
* route: ActivatedRouteSnapshot,
* state: RouterStateSnapshot
* ): Observable<any>|Promise<any>|any {
* ): Observable<Hero>|Promise<Hero>|Hero {
* return this.service.getHero(route.paramMap.get('id'));
* }
* }
Expand Down

0 comments on commit ec49796

Please sign in to comment.