From 3674f4536b27f82bbf7a4a9334255976deddf29e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 9 Jul 2024 21:46:50 +0100 Subject: [PATCH] fix: restore reference to dom.extras in lib.dom.d.ts (#24489) This was changed by mistake in #24326. Closes https://github.com/denoland/deno/issues/24459. --- cli/tsc/dts/lib.dom.d.ts | 1 + tests/specs/run/dom_extras_dts/__test__.jsonc | 4 ++++ tests/specs/run/dom_extras_dts/deno.json | 8 ++++++++ tests/specs/run/dom_extras_dts/dom_extras_dts.out | 3 +++ tests/specs/run/dom_extras_dts/dom_extras_dts.ts | 2 ++ 5 files changed, 18 insertions(+) create mode 100644 tests/specs/run/dom_extras_dts/__test__.jsonc create mode 100644 tests/specs/run/dom_extras_dts/deno.json create mode 100644 tests/specs/run/dom_extras_dts/dom_extras_dts.out create mode 100644 tests/specs/run/dom_extras_dts/dom_extras_dts.ts diff --git a/cli/tsc/dts/lib.dom.d.ts b/cli/tsc/dts/lib.dom.d.ts index 6ee95c5298d041..d1c7dabc65daff 100644 --- a/cli/tsc/dts/lib.dom.d.ts +++ b/cli/tsc/dts/lib.dom.d.ts @@ -15,6 +15,7 @@ and limitations under the License. /// +/// ///////////////////////////// /// Window APIs diff --git a/tests/specs/run/dom_extras_dts/__test__.jsonc b/tests/specs/run/dom_extras_dts/__test__.jsonc new file mode 100644 index 00000000000000..ee4c2bd3a69097 --- /dev/null +++ b/tests/specs/run/dom_extras_dts/__test__.jsonc @@ -0,0 +1,4 @@ +{ + "args": "run --check dom_extras_dts.ts", + "output": "dom_extras_dts.out" +} diff --git a/tests/specs/run/dom_extras_dts/deno.json b/tests/specs/run/dom_extras_dts/deno.json new file mode 100644 index 00000000000000..7708b998ad220f --- /dev/null +++ b/tests/specs/run/dom_extras_dts/deno.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "lib": [ + "deno.ns", + "dom" + ] + } +} diff --git a/tests/specs/run/dom_extras_dts/dom_extras_dts.out b/tests/specs/run/dom_extras_dts/dom_extras_dts.out new file mode 100644 index 00000000000000..c6bfb7a640acf2 --- /dev/null +++ b/tests/specs/run/dom_extras_dts/dom_extras_dts.out @@ -0,0 +1,3 @@ +Check [WILDCARD]dom_extras_dts.ts +URLPattern[WILDCARD] +function diff --git a/tests/specs/run/dom_extras_dts/dom_extras_dts.ts b/tests/specs/run/dom_extras_dts/dom_extras_dts.ts new file mode 100644 index 00000000000000..1e67585a0fe4b9 --- /dev/null +++ b/tests/specs/run/dom_extras_dts/dom_extras_dts.ts @@ -0,0 +1,2 @@ +console.log(new URLPattern({ pathname: "/:foo/:bar/c" })); +console.log(typeof Deno.serve);