Skip to content

Commit

Permalink
šŸ¤– Merge PR DefinitelyTyped#67444 feat(node): dns.promises module add ā€¦
Browse files Browse the repository at this point in the history
ā€¦getDefaultResultOrder api by @btea

* feat(node): dns.promises module add getDefaultResultOrder api

* chore: remove export

* feat: ts4.8 add getDefaultResultOrder

* feat: update

* chore: update version

* chore: update version
  • Loading branch information
btea authored Nov 20, 2023
1 parent 68fb9f5 commit 7aa2514
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/node/dns/promises.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ declare module "dns/promises" {
* @since v10.6.0
*/
function reverse(ip: string): Promise<string[]>;
/**
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
*
* * `ipv4first`: for `verbatim` defaulting to `false`.
* * `verbatim`: for `verbatim` defaulting to `true`.
* @since v20.1.0
*/
function getDefaultResultOrder(): "ipv4first" | "verbatim";
/**
* Sets the IP address and port of servers to be used when performing DNS
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
Expand Down
8 changes: 8 additions & 0 deletions types/node/ts4.8/dns/promises.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ declare module "dns/promises" {
* @since v10.6.0
*/
function reverse(ip: string): Promise<string[]>;
/**
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
*
* * `ipv4first`: for `verbatim` defaulting to `false`.
* * `verbatim`: for `verbatim` defaulting to `true`.
* @since v20.1.0
*/
function getDefaultResultOrder(): "ipv4first" | "verbatim";
/**
* Sets the IP address and port of servers to be used when performing DNS
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
Expand Down
8 changes: 8 additions & 0 deletions types/node/v18/dns/promises.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ declare module "dns/promises" {
* @since v10.6.0
*/
function reverse(ip: string): Promise<string[]>;
/**
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
*
* * `ipv4first`: for `verbatim` defaulting to `false`.
* * `verbatim`: for `verbatim` defaulting to `true`.
* @since v18.17.0
*/
function getDefaultResultOrder(): "ipv4first" | "verbatim";
/**
* Sets the IP address and port of servers to be used when performing DNS
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
Expand Down
8 changes: 8 additions & 0 deletions types/node/v18/ts4.8/dns/promises.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ declare module "dns/promises" {
* @since v10.6.0
*/
function reverse(ip: string): Promise<string[]>;
/**
* Get the default value for `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be:
*
* * `ipv4first`: for `verbatim` defaulting to `false`.
* * `verbatim`: for `verbatim` defaulting to `true`.
* @since v18.17.0
*/
function getDefaultResultOrder(): "ipv4first" | "verbatim";
/**
* Sets the IP address and port of servers to be used when performing DNS
* resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted
Expand Down

0 comments on commit 7aa2514

Please sign in to comment.