summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorThanapat Chotipun <66824385+PatrickChoDev@users.noreply.github.com>2022-05-14 19:08:35 +0700
committerGitHub <noreply@github.com>2022-05-14 14:08:35 +0200
commitbd4256262a1091d43c18d069c724fa9b41c01b95 (patch)
treea9bf72e90ba98afdc5aa7067c79cf0093170e15a /cli/dts/lib.deno.ns.d.ts
parentf82a79ffdbc6b8f2fc4bbe6174ad33cb22e64386 (diff)
feat(ext/net): add support for SOA records in Deno.resolveDns() API (#14534)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 8d7f5f269..f7dc778c3 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -2957,6 +2957,7 @@ declare namespace Deno {
| "MX"
| "NS"
| "PTR"
+ | "SOA"
| "SRV"
| "TXT";
@@ -2978,6 +2979,12 @@ declare namespace Deno {
exchange: string;
}
+ /** If `resolveDns` is called with "SOA" record type specified, it will return an array of this interface. */
+ export interface SOARecord {
+ mname: string;
+ rname: string;
+ }
+
/** If `resolveDns` is called with "SRV" record type specified, it will return an array of this interface. */
export interface SRVRecord {
priority: number;
@@ -3000,6 +3007,12 @@ declare namespace Deno {
export function resolveDns(
query: string,
+ recordType: "SOA",
+ options?: ResolveDnsOptions,
+ ): Promise<SOARecord[]>;
+
+ export function resolveDns(
+ query: string,
recordType: "SRV",
options?: ResolveDnsOptions,
): Promise<SRVRecord[]>;