Skip to content

Commit

Permalink
refactor(map): set generic type instead of any (#5118)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakovljevic-mladen authored and benlesh committed Nov 1, 2019
1 parent c2657a8 commit c008bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/operators/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class MapSubscriber<T, R> extends Subscriber<T> {
// NOTE: This looks unoptimized, but it's actually purposefully NOT
// using try/catch optimizations.
protected _next(value: T) {
let result: any;
let result: R;
try {
result = this.project.call(this.thisArg, value, this.count++);
} catch (err) {
Expand Down

0 comments on commit c008bdd

Please sign in to comment.