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

PR Close #28256
This commit is contained in:
Tomas Veras 2019-01-21 13:24:10 -04:00 committed by Alex Rickabaugh
parent 366a6bf192
commit 6bd20e8b2f
1 changed files with 1 additions and 1 deletions

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
}