summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts26
1 files changed, 25 insertions, 1 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 8ed0ab83e..3777aa56b 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -2955,6 +2955,7 @@ declare namespace Deno {
| "ANAME"
| "CNAME"
| "MX"
+ | "NAPTR"
| "NS"
| "PTR"
| "SOA"
@@ -2979,6 +2980,16 @@ declare namespace Deno {
exchange: string;
}
+ /** If `resolveDns` is called with "NAPTR" record type specified, it will return an array of this interface. */
+ export interface NAPTRRecord {
+ order: number;
+ preference: number;
+ flags: string;
+ services: string;
+ regexp: string;
+ replacement: string;
+ }
+
/** If `resolveDns` is called with "SOA" record type specified, it will return an array of this interface. */
export interface SOARecord {
mname: string;
@@ -3012,6 +3023,12 @@ declare namespace Deno {
export function resolveDns(
query: string,
+ recordType: "NAPTR",
+ options?: ResolveDnsOptions,
+ ): Promise<NAPTRRecord[]>;
+
+ export function resolveDns(
+ query: string,
recordType: "SOA",
options?: ResolveDnsOptions,
): Promise<SOARecord[]>;
@@ -3049,5 +3066,12 @@ declare namespace Deno {
query: string,
recordType: RecordType,
options?: ResolveDnsOptions,
- ): Promise<string[] | MXRecord[] | SOARecord[] | SRVRecord[] | string[][]>;
+ ): Promise<
+ | string[]
+ | MXRecord[]
+ | NAPTRRecord[]
+ | SOARecord[]
+ | SRVRecord[]
+ | string[][]
+ >;
}