-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typings): fixed Subject<T>.lift to have the same shape as Observa…
…ble<T>.lift
- Loading branch information
1 parent
4c31974
commit b07f597
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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> { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
alexfung888
|
||
const subject = new AnonymousSubject(this, this); | ||
subject.operator = operator; | ||
subject.operator = <any>operator; | ||
return <any>subject; | ||
} | ||
|
||
|
Observable<T>#lift<R>
returns anObservable<R>
, so this isn't exactly identical. Perhaps we should revisit #1234