diff options
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 13 |
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[]>; |