docs: add missing type when handling errors in hero service. (#28256) (#28423)

PR Close #28256

PR Close #28423
This commit is contained in:
Tomas Veras 2019-01-21 13:24:10 -04:00 committed by Matias Niemelä
parent 728d903a67
commit 654ec1570a

View File

@ -42,7 +42,7 @@ export class HeroService {
// #enddocregion getHeroes-2
tap(_ => this.log('fetched heroes')),
// #docregion getHeroes-2
catchError(this.handleError('getHeroes', []))
catchError(this.handleError<Hero[]>('getHeroes', []))
);
// #docregion getHeroes-1
}