Skip to content

Commit

Permalink
fix(typings): partial fix for subject
Browse files Browse the repository at this point in the history
  • Loading branch information
masaeedu committed Jan 20, 2016
1 parent 59c723e commit 3eb1368
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Subject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export class Subject<T> extends Observable<T> implements Observer<T>, Subscripti
protected dispatching: boolean = false;
protected hasCompleted: boolean = false;

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

add(subscription: Subscription|Function|void): void {
Expand Down

0 comments on commit 3eb1368

Please sign in to comment.