-
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
lettable toPromise? #2868
Comments
Any response? It works in result, but typechecking fails ( |
|
@benlesh I understand it, but it exported as lettable. What the preferred way of convert to promise with support of tree shaking? |
To support tree shaking I'd just use const promise = toPromise()(myObservable) |
... Oops. That doesn't seem right. Since it doesn't compose via |
cc @kwonoj |
So what is the proper way of using |
@mebibou Don't pipe. It's on the Observable object by default. Observable.of('foo').toPromise(); // this
Observable.of('foo').pipe(toPromise()); // not this |
Thanks, @Harangue , I hope pipeable operators docs were as clear on this :) |
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. |
RxJS version: 5.5.0-beta
Code to reproduce:
Expected behavior:
No error
Actual behavior:
Additional information:
The text was updated successfully, but these errors were encountered: