Skip to content

Open source CapCut alternative.

TypeScript

fix(site): type the raster mask context for the union surface

David Le6c33af1f3172
diff --git a/site/src/cut/lib/exportClient.ts b/site/src/cut/lib/exportClient.ts
index 688d6b4e..77b88f5c 100644
--- a/site/src/cut/lib/exportClient.ts
+++ b/site/src/cut/lib/exportClient.ts
@@ -236,7 +236,7 @@ async function renderClipMaskPictures(
: { x: -box.x, y: -box.y, w: W, h: H };
const canvas = createRasterCanvas(box.w, box.h);
const blobAt = (tLocal: number) => {
- const ctx = canvas.getContext("2d")!;
+ const ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
if (radius > 0) {
ctx.globalCompositeOperation = "source-over";
ctx.fillStyle = "#000000";