diff options
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 3777aa56b..019ab240b 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -2953,6 +2953,7 @@ declare namespace Deno { | "A" | "AAAA" | "ANAME" + | "CAA" | "CNAME" | "MX" | "NAPTR" @@ -2974,6 +2975,13 @@ declare namespace Deno { }; } + /** If `resolveDns` is called with "CAA" record type specified, it will return an array of this interface. */ + export interface CAARecord { + critical: boolean; + tag: string; + value: string; + } + /** If `resolveDns` is called with "MX" record type specified, it will return an array of this interface. */ export interface MXRecord { preference: number; @@ -3017,6 +3025,12 @@ declare namespace Deno { export function resolveDns( query: string, + recordType: "CAA", + options?: ResolveDnsOptions, + ): Promise<CAARecord[]>; + + export function resolveDns( + query: string, recordType: "MX", options?: ResolveDnsOptions, ): Promise<MXRecord[]>; @@ -3068,6 +3082,7 @@ declare namespace Deno { options?: ResolveDnsOptions, ): Promise< | string[] + | CAARecord[] | MXRecord[] | NAPTRRecord[] | SOARecord[] |