Skip to content

Commit b97e75b

Browse files
committed
Fix build errors.
1 parent 27f3652 commit b97e75b

File tree

3 files changed

+166
-68
lines changed

3 files changed

+166
-68
lines changed

package-lock.json

Lines changed: 161 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"url": "https://github.com/0xfe/vexflow/issues"
8686
},
8787
"devDependencies": {
88+
"@types/node": "^18.11.11",
8889
"@typescript-eslint/eslint-plugin": "^5.8.1",
8990
"@typescript-eslint/parser": "^5.8.1",
9091
"canvas": "^2.8.0",
@@ -116,6 +117,7 @@
116117
"sharp": "^0.29.3",
117118
"string-replace-loader": "^3.1.0",
118119
"svg2pdf.js": "^2.2.0",
120+
"terser-webpack-plugin": "^5.3.6",
119121
"ts-loader": "^9.2.6",
120122
"tsc-watch": "^4.6.0",
121123
"typedoc": "^0.22.10",

tests/offscreencanvas_tests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ function simpleTest(): void {
2929
// eslint-disable-next-line
3030
// @ts-ignore
3131
const offscreenCanvas = new OffscreenCanvas(550, 200);
32-
const offscreenCtx = offscreenCanvas.getContext('2d');
32+
// eslint-disable-next-line
33+
// @ts-ignore
34+
const offscreenCtx: OffscreenCanvasRenderingContext2D = offscreenCanvas.getContext('2d');
3335
if (offscreenCtx == null) {
3436
throw new Error("Couldn't create offscreen context");
3537
}

0 commit comments

Comments
 (0)