Skip to content

Commit

Permalink
Merge pull request #2035 from david-driscoll/fix-subject-lift
Browse files Browse the repository at this point in the history
fix(typings): fixed Subject<T>.lift to have the same shape as Observable<T>.lift
  • Loading branch information
kwonoj authored Oct 14, 2016
2 parents 4c31974 + b07f597 commit 7ee0575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Subject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export class Subject<T> extends Observable<T> implements ISubscription {
return new AnonymousSubject<T>(destination, source);
};

lift<T, R>(operator: Operator<T, R>): Observable<T> {
lift<R>(operator: Operator<T, R>): Observable<T> {
const subject = new AnonymousSubject(this, this);
subject.operator = operator;
subject.operator = <any>operator;
return <any>subject;
}

Expand Down

0 comments on commit 7ee0575

Please sign in to comment.