diff options
author | Craig Morten <cmorten@users.noreply.github.com> | 2022-05-15 16:42:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 17:42:02 +0200 |
commit | c9e9265c3eea93cd6006546a70f3552a41718944 (patch) | |
tree | 1dbc7b60d0b0426543982de35141410a9bd6204f /cli/dts/lib.deno.ns.d.ts | |
parent | 45ee72741225728f8fa3940fe4685f7d795ecca7 (diff) |
feat(ext/net): support NAPTR records in Deno.resolveDns() API (#14613)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 26 |
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[][] + >; } |