Skip to content

Commit

Permalink
Fix type declaration for args in canvasMutation function
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored and eoghanmurray committed Apr 22, 2024
1 parent c394357 commit f728202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/replay/canvas/2d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async function canvasMutation({
return Promise.all(mutation.args.map(deserializeArg(imageMap, ctx)));
},
);
const args = await Promise.all<unknown>(mutationArgsPromises);
const args: unknown[][] = await Promise.all(mutationArgsPromises);
// step 2 apply all mutations
args.forEach((args, index) => {
const mutation = mutations[index];
Expand Down

0 comments on commit f728202

Please sign in to comment.