Skip to content
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

Fix buildCancellablePromise type signature #12

Conversation

ondrej-stanek-ozobot
Copy link
Contributor

We noticed that the signature of race was updated in commit 7f91680 (src/CancellablePromise.ts:77).

We propose to also update the signature of the buildCancellablePromise in the same manner.

This resolves issue with types encountered in the raceAndCancel PR #11.

We kindly ask to consider merging this type improvement independently of the PR #11.

to be compatible with `Awaited`, `race` and others.
@ondrej-stanek-ozobot
Copy link
Contributor Author

Sorry, the issue is very convoluted and I am having hard time writing a test for it. I will submit this as a separate issue in case I will be able to write a test that clearly shows the issue. Closing this PR for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant