1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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
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");