-
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
toPromise on Observable requires promise constructor argument #864
Comments
Yes, seems so. I'll update this quickly. |
Awesome @kwonoj thanks! |
thanks! |
- make Promistctor parameter as optional in type definition closes ReactiveX#864
Nice one OJ. This sort of thing would be caught with TS running type checks on a TS based test suite, so I'm definitely for that. |
: totally agreed. Currently 2 proposals opened for this, #826 and #667. Once it's decided which way to go, test will be added along with updating existing type declarations if necessary. |
- make Promistctor parameter as optional in type definition closes ReactiveX#864
https://github.com/ReactiveX/RxJS/blob/master/src/Observable.ts#L247
The constructor should be optional, as it is implemented in the operator itself https://github.com/ReactiveX/RxJS/blob/master/src/operator/toPromise.ts
The text was updated successfully, but these errors were encountered: