From 7aa25146316b7bafa0863d69bc5f125cde97f216 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Tue, 21 Nov 2023 07:33:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#67444=20feat(node)?= =?UTF-8?q?:=20dns.promises=20module=20add=20getDefaultResultOrder=20api?= =?UTF-8?q?=20by=20@btea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(node): dns.promises module add getDefaultResultOrder api * chore: remove export * feat: ts4.8 add getDefaultResultOrder * feat: update * chore: update version * chore: update version --- types/node/dns/promises.d.ts | 8 ++++++++ types/node/ts4.8/dns/promises.d.ts | 8 ++++++++ types/node/v18/dns/promises.d.ts | 8 ++++++++ types/node/v18/ts4.8/dns/promises.d.ts | 8 ++++++++ 4 files changed, 32 insertions(+) diff --git a/types/node/dns/promises.d.ts b/types/node/dns/promises.d.ts index e3711fdc313391..ef9b2228123c3a 100644 --- a/types/node/dns/promises.d.ts +++ b/types/node/dns/promises.d.ts @@ -307,6 +307,14 @@ declare module "dns/promises" { * @since v10.6.0 */ function reverse(ip: string): Promise; + /** + * 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 diff --git a/types/node/ts4.8/dns/promises.d.ts b/types/node/ts4.8/dns/promises.d.ts index e3711fdc313391..ef9b2228123c3a 100644 --- a/types/node/ts4.8/dns/promises.d.ts +++ b/types/node/ts4.8/dns/promises.d.ts @@ -307,6 +307,14 @@ declare module "dns/promises" { * @since v10.6.0 */ function reverse(ip: string): Promise; + /** + * 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 diff --git a/types/node/v18/dns/promises.d.ts b/types/node/v18/dns/promises.d.ts index 5458b6e6c18da8..282ec723d38545 100644 --- a/types/node/v18/dns/promises.d.ts +++ b/types/node/v18/dns/promises.d.ts @@ -307,6 +307,14 @@ declare module "dns/promises" { * @since v10.6.0 */ function reverse(ip: string): Promise; + /** + * 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 diff --git a/types/node/v18/ts4.8/dns/promises.d.ts b/types/node/v18/ts4.8/dns/promises.d.ts index 5458b6e6c18da8..282ec723d38545 100644 --- a/types/node/v18/ts4.8/dns/promises.d.ts +++ b/types/node/v18/ts4.8/dns/promises.d.ts @@ -307,6 +307,14 @@ declare module "dns/promises" { * @since v10.6.0 */ function reverse(ip: string): Promise; + /** + * 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