-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why different generics for Subscriber and Observable #2166
Comments
Actually I lost history in my memory for background of this - /cc @david-driscoll : any idea? |
that looks odd at first glance and probably needs to be changed. that said since subject has a different create method than observable the typings mean nothing as it only has a function type. |
Looks incorrect to me. |
…servable's initializer function is the same. - closes #2166
I came across this because I'm experiencing an issue where Typescript is not properly resolving the return type for Observable.create.
I think assigning create the global Function type is the issue. I believe this would resolve it...
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Not sure if this is a bug or not.
RxJS version:
5.0.0-rc.4
Code to reproduce:
rxjs/src/Observable.ts
Line 56 in e91d113
Expected behavior:
Actual behavior:
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 usevalue$.map
?The text was updated successfully, but these errors were encountered: