Skip to content

🎥 Make videos programmatically with React

Fix types for `outName` in renderMediaOnLambda()

Jonny Burger11d2f1aa9177
diff --git a/packages/lambda/src/api/render-media-on-lambda.ts b/packages/lambda/src/api/render-media-on-lambda.ts
index 7efef9b2d4..39e7ace579 100644
--- a/packages/lambda/src/api/render-media-on-lambda.ts
+++ b/packages/lambda/src/api/render-media-on-lambda.ts
@@ -9,7 +9,7 @@ import type {
import {Internals} from 'remotion';
import type {AwsRegion} from '../pricing/aws-regions';
import {callLambda} from '../shared/call-lambda';
-import type {Privacy} from '../shared/constants';
+import type {OutNameInput, Privacy} from '../shared/constants';
import {LambdaRoutines} from '../shared/constants';
import {convertToServeUrl} from '../shared/convert-to-serve-url';
import {validateFramesPerLambda} from '../shared/validate-frames-per-lambda';
@@ -35,7 +35,7 @@ export type RenderMediaOnLambdaInput = {
framesPerLambda?: number;
logLevel?: LogLevel;
frameRange?: FrameRange;
- outName?: string;
+ outName?: OutNameInput;
timeoutInMilliseconds?: number;
chromiumOptions?: ChromiumOptions;
scale?: number;