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

chore: account for Node.js setTimeout return type #6039

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

cartant
Copy link
Collaborator

@cartant cartant commented Feb 22, 2021

Description:

The ts@latest CI task installs the latest Node types, too. This effects some breakages in tests - where setTimeout is assumed to return number. This PR uses ReturnType instead.

Also, as there are two signatures for setTimeout - in the Node types and in TypeScipt's DOM types - the duration has to be specified - otherwise, the call will match the second signature (the TypeScript one) which returns number. 🙈

Related PR: #6038

@benlesh benlesh merged commit 6f7cee5 into ReactiveX:master Feb 22, 2021
@cartant cartant deleted the cartant/node-types branch March 19, 2021 07:22
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.

2 participants