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

Add dns.promises typedef to node.js #8586

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

STRML
Copy link
Contributor

@STRML STRML commented Feb 15, 2021

As of Node 10, DNS has a dns.promises API.

Only tricky thing about this is that dns.promises.lookup() resolves an object {address: string, family: number}.

Also added missing methods (a few were added in v10) and removed any types where possible.

@nmote nmote added the Library definitions Issues or pull requests about core library definitions label Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Library definitions Issues or pull requests about core library definitions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants