summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-07-09 21:46:50 +0100
committerGitHub <noreply@github.com>2024-07-09 22:46:50 +0200
commit3674f4536b27f82bbf7a4a9334255976deddf29e (patch)
tree9ec5882b61d262c1f93fafc7d01d58767a709d14
parent3c91d597ce6436d6b602f15af6b3e22379e0ed00 (diff)
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.
-rw-r--r--cli/tsc/dts/lib.dom.d.ts1
-rw-r--r--tests/specs/run/dom_extras_dts/__test__.jsonc4
-rw-r--r--tests/specs/run/dom_extras_dts/deno.json8
-rw-r--r--tests/specs/run/dom_extras_dts/dom_extras_dts.out3
-rw-r--r--tests/specs/run/dom_extras_dts/dom_extras_dts.ts2
5 files changed, 18 insertions, 0 deletions
diff --git a/cli/tsc/dts/lib.dom.d.ts b/cli/tsc/dts/lib.dom.d.ts
index 6ee95c529..d1c7dabc6 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.
/// <reference no-default-lib="true"/>
+/// <reference lib="dom.extras" />
/////////////////////////////
/// 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 000000000..ee4c2bd3a
--- /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 000000000..7708b998a
--- /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 000000000..c6bfb7a64
--- /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 000000000..1e67585a0
--- /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);