-
Notifications
You must be signed in to change notification settings - Fork 74
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
toObservable() is not compatible with Rx (observer is not partial) #245
Comments
Ah yes this has been bothering me too. Ix also doesn't add the import symbolObservable from 'symbol-observable';
function asyncIteratorToObservable(x) {
const obs = AsyncIterable.as(x).toObservable();
obs[symbolObservable] = () => obs;
return Observable.from(obs);
} |
* update batch specs for jest * add symbol-observable, fix observable typings/issue #245 * add symbol-observable to closure * fix symbol-observable for real now * polyfill Symbol.observable and add tests for RxJS compat * cleanup, clarify Symbol.observable comment * require symbol/observable from rx because jest
I think this fix broke compatibility in the other direction (creating an
works fine with
This might be related to ReactiveX/rxjs#3890 where [Symbol.observable] doesn't make it into the typings for rxjs observables. Note that if you work around this problem with
it still fails with
|
Dang, lemme see what I can do about that. Thanks for flagging this @arseneyr! |
* fix(toObservable): Fix rxjs typings and symbol-observable interop fixes #245 * ci(ci): fix npm version to 6.5.0
IxJS version:
Code to reproduce:
Expected behavior:
Should compile
Actual behavior:
Fails with
This is because
Observable
as defined in Ix takes an Observer where all ofnext
,error
andcomplete
have to be provided, instead of being optional.Additional information:
The text was updated successfully, but these errors were encountered: