Skip to content

🎥 Make videos programmatically with React

fixed type error

benno01b98b37ba61
diff --git a/packages/docs/docs/lambda/renderstillonlambda.md b/packages/docs/docs/lambda/renderstillonlambda.md
index f4496d5d3f..78344b446d 100644
--- a/packages/docs/docs/lambda/renderstillonlambda.md
+++ b/packages/docs/docs/lambda/renderstillonlambda.md
@@ -83,7 +83,7 @@ From v3.2.27, negative values are allowed, with `-1` being the last frame.
_optional - default `"png"`_
-The image format that you want - either `"png"` or `"jpeg"`.
+The image format that you want - either `"png"`, `"jpeg"` or `"pdf"`.
### `quality?`
diff --git a/packages/lambda/src/api/render-still-on-lambda.ts b/packages/lambda/src/api/render-still-on-lambda.ts
index 510a50a81d..9a5df4710f 100644
--- a/packages/lambda/src/api/render-still-on-lambda.ts
+++ b/packages/lambda/src/api/render-still-on-lambda.ts
@@ -18,7 +18,7 @@ export type RenderStillOnLambdaInput = {
serveUrl: string;
composition: string;
inputProps: unknown;
- imageFormat: Exclude<StillImageFormat, 'pdf'>; // TODO figure out how lambda works
+ imageFormat: StillImageFormat;
privacy: Privacy;
maxRetries?: number;
envVariables?: Record<string, string>;