Skip to content

Commit

Permalink
Fix types for catchError
Browse files Browse the repository at this point in the history
The cast was removed in ReactiveX#5572 but it is needed in Google for this to compile
  • Loading branch information
Christine Legge authored Jul 29, 2020
1 parent 3db2eaa commit e90d5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/operators/catchError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export function catchError<T, O extends ObservableInput<any>>(
): OperatorFunction<T, T | ObservedValueOf<O>> {
return function catchErrorOperatorFunction(source: Observable<T>): Observable<T | ObservedValueOf<O>> {
const operator = new CatchOperator(selector);
const caught = lift(source, operator);
const caught = lift(source, operator) as Observable<T>;
operator.caught = caught;
return caught;
};
Expand Down

0 comments on commit e90d5fe

Please sign in to comment.