-
Notifications
You must be signed in to change notification settings - Fork 206
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
Type definitions for observables #485
Comments
Sadly, I don't think it's possible in Flow right now to use symbols. That basically means that Flow users aren't doing to be able to use Observables in general, so I don't think we're currently making the situation any worse. If we are, though, and there's a way we could do better, I'm all for it. @TylorS @Frikki: do either of you know if it's possible in TS? |
In TypeScript the situation is similar. I've been following this thread for over a year now. TypeScript is only capable of handling "well-known" (by TypeScript) Symbols in types. e.g. |
Thanks @TylorS. Seems like we've done all we can do for now until Flow and TS support Symbol.observable. |
microsoft/TypeScript#5579 has been fixed. |
from
in types acceptsObservable
which is not correct. It should be{ [SymbolObservable]: Observable }
according source code.Flow has some problems with symbols. Don't know about typescript.
The text was updated successfully, but these errors were encountered: