From a55f0eb2fc005016dc9d44bfe4771dd451df9c30 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sat, 11 Feb 2023 15:14:02 +0100 Subject: feat: add signal option to Deno.resolveDns (#17384) Closes #14406 --- cli/tsc/dts/lib.deno.ns.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/tsc/dts') diff --git a/cli/tsc/dts/lib.deno.ns.d.ts b/cli/tsc/dts/lib.deno.ns.d.ts index 58dd602d8..33a568b65 100644 --- a/cli/tsc/dts/lib.deno.ns.d.ts +++ b/cli/tsc/dts/lib.deno.ns.d.ts @@ -4989,6 +4989,12 @@ declare namespace Deno { * @default {53} */ port?: number; }; + /** + * An abort signal to allow cancellation of the DNS resolution operation. + * If the signal becomes aborted the resolveDns operation will be stopped + * and the promise returned will be rejected with an AbortError. + */ + signal?: AbortSignal; } /** If {@linkcode Deno.resolveDns} is called with `"CAA"` record type -- cgit v1.2.3