summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorCraig Morten <cmorten@users.noreply.github.com>2022-05-16 10:20:41 +0100
committerGitHub <noreply@github.com>2022-05-16 11:20:41 +0200
commit10a68a56354b8e5235084fd5eb63b056965f2418 (patch)
tree6aefd326fb6d72befe95c8316832925c947e7ab7 /cli/dts/lib.deno.ns.d.ts
parenteb5ffab1cbc010424aa1764005f71dcd67525dc1 (diff)
feat(ext/net): add `CAA` DNS record support in Deno.resolveDns() API (#14624)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r--cli/dts/lib.deno.ns.d.ts15
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[]