Skip to content

Commit

Permalink
fixup! fix(types): support union type inference for merge operators
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Jan 9, 2019
1 parent 8350622 commit e2878af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/internal/operators/endWith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function endWith<T>(...array: Array<T | SchedulerLike>): MonoTypeOperator
} else if (len > 0) {
return concatStatic(source, fromArray(array as T[], scheduler));
} else {
return concatStatic<T>(source, empty(scheduler) as any);
return concatStatic(source, empty(scheduler));
}
};
}
2 changes: 1 addition & 1 deletion src/internal/operators/startWith.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function startWith<T, D>(...array: Array<T | SchedulerLike>): OperatorFun
} else if (len > 0) {
return concatStatic(fromArray(array as T[], scheduler), source);
} else {
return concatStatic<T>(empty(scheduler) as any, source);
return concatStatic(empty(scheduler), source);
}
};
}

0 comments on commit e2878af

Please sign in to comment.