docs: add missing type when handling errors in hero service. (#28256)
PR Close #28256
This commit is contained in:
parent
366a6bf192
commit
6bd20e8b2f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue