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(types): add missing DNS interceptor #4024

Open
wants to merge 2 commits into
base: v6.x
Choose a base branch
from

Conversation

slagiewka
Copy link

This relates to...

#3684 has backported the DNS interceptor from #3490. However, the func that is exported, was not added to TypeScript defs. Opts and return type were added with the backport already.

Rationale

Allow v6 + TS users to hook the DNS interceptor in.

Changes

Features

Bug Fixes

fix(types): add missing DNS interceptor

Breaking Changes and Deprecations

Status

nodejs#3684 has backported the DNS interceptor from nodejs#3490. However, the func
that is exported, was not added to TypeScript defs.

Co-authored-by: Carlos Fuentes <[email protected]>
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina
Copy link
Member

Can you add a test for this? we use tsd.

@slagiewka
Copy link
Author

Can you add a test for this? we use tsd.

Added. I wasn't sure how it's supposed to be tested (or where). It could be both tested in dispatcher tests, where compose is mentioned with on-the-fly interceptors or here in interceptor test.

Please bear in mind, that the interceptor type test is gone in v7 branch (#3815).

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.

3 participants