Update Typescript to 4.5 (#7344)

This commit is contained in:
Michael Telatynski 2021-12-13 11:22:53 +00:00 committed by GitHub
parent fcc4939075
commit c96b9413e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 24 deletions

View file

@ -131,8 +131,8 @@ async function createThumbnail(
canvas = new window.OffscreenCanvas(targetWidth, targetHeight);
} else {
canvas = document.createElement("canvas");
canvas.width = targetWidth;
canvas.height = targetHeight;
(canvas as HTMLCanvasElement).width = targetWidth;
(canvas as HTMLCanvasElement).height = targetHeight;
}
const context = canvas.getContext("2d");