Skip to content

Commit

Permalink
fix: restore reference to dom.extras in lib.dom.d.ts (#24489)
Browse files Browse the repository at this point in the history
This was changed by mistake in #24326.

Closes #24459.
  • Loading branch information
bartlomieju authored Jul 9, 2024
1 parent 3c91d59 commit 3674f45
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/tsc/dts/lib.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and limitations under the License.


/// <reference no-default-lib="true"/>
/// <reference lib="dom.extras" />

/////////////////////////////
/// Window APIs
Expand Down
4 changes: 4 additions & 0 deletions tests/specs/run/dom_extras_dts/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"args": "run --check dom_extras_dts.ts",
"output": "dom_extras_dts.out"
}
8 changes: 8 additions & 0 deletions tests/specs/run/dom_extras_dts/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"lib": [
"deno.ns",
"dom"
]
}
}
3 changes: 3 additions & 0 deletions tests/specs/run/dom_extras_dts/dom_extras_dts.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Check [WILDCARD]dom_extras_dts.ts
URLPattern[WILDCARD]
function
2 changes: 2 additions & 0 deletions tests/specs/run/dom_extras_dts/dom_extras_dts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
console.log(new URLPattern({ pathname: "/:foo/:bar/c" }));
console.log(typeof Deno.serve);

0 comments on commit 3674f45

Please sign in to comment.