From e6326907d22f614de6430e1651e2796b5ceb92d5 Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Fri, 5 Apr 2024 11:29:42 +0200 Subject: [PATCH] Fix type declaration for args in canvasMutation function --- packages/rrweb/src/replay/canvas/2d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rrweb/src/replay/canvas/2d.ts b/packages/rrweb/src/replay/canvas/2d.ts index 0d85e8ca70..2b95d0c35a 100644 --- a/packages/rrweb/src/replay/canvas/2d.ts +++ b/packages/rrweb/src/replay/canvas/2d.ts @@ -28,7 +28,7 @@ export default async function canvasMutation({ return Promise.all(mutation.args.map(deserializeArg(imageMap, ctx))); }, ); - const args = await Promise.all(mutationArgsPromises); + const args: unknown[][] = await Promise.all(mutationArgsPromises); // step 2 apply all mutations args.forEach((args, index) => { const mutation = mutations[index];