From 10a68a56354b8e5235084fd5eb63b056965f2418 Mon Sep 17 00:00:00 2001 From: Craig Morten Date: Mon, 16 May 2022 10:20:41 +0100 Subject: feat(ext/net): add `CAA` DNS record support in Deno.resolveDns() API (#14624) --- cli/dts/lib.deno.ns.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cli/dts/lib.deno.ns.d.ts') 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; @@ -3015,6 +3023,12 @@ declare namespace Deno { options?: ResolveDnsOptions, ): Promise; + export function resolveDns( + query: string, + recordType: "CAA", + options?: ResolveDnsOptions, + ): Promise; + export function resolveDns( query: string, recordType: "MX", @@ -3068,6 +3082,7 @@ declare namespace Deno { options?: ResolveDnsOptions, ): Promise< | string[] + | CAARecord[] | MXRecord[] | NAPTRRecord[] | SOARecord[] -- cgit v1.2.3