-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
TSIssues and PRs related purely to TypeScript issuesIssues and PRs related purely to TypeScript issues
Description
Not sure if this is a bug or not.
RxJS version:
5.0.0-rc.4
Code to reproduce:
Line 56 in e91d113
| static create: Function = <T>(subscribe?: <R>(subscriber: Subscriber<R>) => TeardownLogic) => { |
Expected behavior:
static create: Function = <T>(subscribe?: <T>(subscriber: Subscriber<T>) => TeardownLogic) => {
return new Observable<T>(subscribe);
};Actual behavior:
static create: Function = <T>(subscribe?: <R>(subscriber: Subscriber<R>) => TeardownLogic) => {
return new Observable<T>(subscribe);
};Additional information:
Maybe I misunderstood this part of RxJS, but I thought the Observable and Subscriber would share the same generic type here? Aren't the values I pass to subscriber.next from the same type I get when I use value$.map?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
TSIssues and PRs related purely to TypeScript issuesIssues and PRs related purely to TypeScript issues