Skip to content

🎥 Make videos programmatically with React

Update progress.ts

Jonny Burgera0f0008bbeb2
diff --git a/packages/lambda/src/cli/commands/render/progress.ts b/packages/lambda/src/cli/commands/render/progress.ts
index 1718c5abca..fa8af5d619 100644
--- a/packages/lambda/src/cli/commands/render/progress.ts
+++ b/packages/lambda/src/cli/commands/render/progress.ts
@@ -9,15 +9,6 @@ type LambdaInvokeProgress = {
lambdasInvoked: number;
};
-type ChunkProgress = {
- doneIn: number | null;
- framesRendered: number;
- framesEncoded: number;
- totalFrames: number | null;
- totalChunks: number | null;
- chunksEncoded: number;
-};
-
const makeInvokeProgress = (overall: RenderProgress) => {
const invokeProgress: LambdaInvokeProgress = {
lambdasInvoked: overall.lambdasInvoked,
@@ -43,7 +34,7 @@ const makeInvokeProgress = (overall: RenderProgress) => {
};
const makeRenderProgress = (progress: RenderProgress) => {
- const chunkProgress: ChunkProgress = {
+ const chunkProgress = {
chunksEncoded: progress.chunks,
totalChunks: progress.renderMetadata?.totalChunks ?? null,
doneIn: progress.timeToFinishChunks,