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: use Node's promisify function #5748

Merged
merged 1 commit into from Apr 27, 2020
Merged

Conversation

jackfranklin
Copy link
Collaborator

Node's promisify function and the TS types for it give much better type
understanding when wrapping a function in promisify. This change means
we don't maintain our own implementation and our own (sub-par) types and
rather lean on the tested and thorough @types/node version instead.

@jackfranklin
Copy link
Collaborator Author

This will pass once #5750 is merged + this PR updated.

Copy link
Member

@mathiasbynens mathiasbynens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup!

Node's promisify function and the TS types for it give much better type
understanding when wrapping a function in `promisify`. This change means
we don't maintain our own implementation and our own (sub-par) types and
rather lean on the tested and thorough @types/node version instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants