Skip to content

Commit

Permalink
Add DOM to lib options
Browse files Browse the repository at this point in the history
This makes types available for DOM APIs, which we do use in react
libraries like Squared.
  • Loading branch information
jonathansick committed Feb 12, 2025
1 parent 65f5fff commit 9b19301
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ninety-paws-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lsst-sqre/tsconfig': patch
---

Add DOM to lib options. This makes types available for DOM APIs, which we do use in react libraries like Squared.
2 changes: 1 addition & 1 deletion packages/tsconfig/react-library.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"extends": "./base.json",
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["ES2015"],
"lib": ["ES2015", "DOM"],
"module": "ESNext",
"target": "es6",
"plugins": [{ "name": "typescript-plugin-css-modules" }]
Expand Down

0 comments on commit 9b19301

Please sign in to comment.