Skip to content

Commit

Permalink
Fix vitest typing
Browse files Browse the repository at this point in the history
  • Loading branch information
niedzielski committed Feb 4, 2024
1 parent c422aa4 commit e2372d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "🗒 Graphical line-oriented text editor.",
"devDependencies": {
"@types/jsdom": "21.1.6",
"@types/node": "18.19.8",
"browser-fs-access": "0.35.0",
"esbuild": "0.20.0",
"jsdom": "24.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"extends": "../../tools/base-tsconfig.json",
"compilerOptions": {
"lib": ["ES2023"],
"lib": ["DOM", "ES2023"],

// tsc is only used for type-checking.
"noEmit": true,
Expand Down
3 changes: 3 additions & 0 deletions tools/base-tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"resolveJsonModule": true,
"strict": true,

// Projects add types needed.
"types": [],

// Improve compatibility with compilers that aren't type system aware.
"isolatedModules": true,

Expand Down

0 comments on commit e2372d0

Please sign in to comment.