🎥 Make videos programmatically with React
update docs
Jonny Burger9bc87cb12bc1
diff --git a/packages/docs/docs/render-frames.md b/packages/docs/docs/render-frames.mdindex 9089c81c78..0d666f3208 100644--- a/packages/docs/docs/render-frames.md+++ b/packages/docs/docs/render-frames.md@@ -16,7 +16,7 @@ In Remotion 3.0, we added the [`renderMedia()`](/docs/renderer/render-media) API```tsconst renderFrames: (options: {- config: VideoConfig;+ composition: VideoConfig;onFrameUpdate: (frame: number) => void;onStart: (data: {frameCount: number;@@ -43,9 +43,9 @@ Configuration in `remotion.config.ts` and CLI flags do not apply to this functioTakes an object with the following keys:-### `config`+### `composition`-A video config, consisting out of `id`, `width`, `height`, `durationInFrames` and `fps`, where `id` is the compositions ID. See: [Defining compositions](/docs/the-fundamentals#defining-compositions) and [useVideoConfig()](/docs/use-video-config).+A video config, consisting out of `id`, `width`, `height`, `durationInFrames` and `fps`, where `id` is the composition ID. You can obtain an array of available compositions using [`getCompositions()`](/docs/renderer/get-compositions).### `onStart`diff --git a/packages/renderer/src/test/validate-config.test.ts b/packages/renderer/src/test/validate-config.test.tsindex a5d5e5e828..da7926e683 100644--- a/packages/renderer/src/test/validate-config.test.ts+++ b/packages/renderer/src/test/validate-config.test.ts@@ -5,12 +5,12 @@ describe('Should validate invalid data passed to renderFrames', () => {return expect(() =>// @ts-expect-errorrenderFrames({- config: {+ composition: {durationInFrames: 100,fps: -1,height: 1000,width: 1000,- id: 'hithere'+ id: 'hithere',},})).rejects.toThrow(@@ -21,12 +21,12 @@ describe('Should validate invalid data passed to renderFrames', () => {return expect(// @ts-expect-errorrenderFrames({- config: {+ composition: {durationInFrames: 0.5,fps: 30,height: 1000,width: 1000,- id: 'hithere'+ id: 'hithere',},})).rejects.toThrow(@@ -42,7 +42,7 @@ describe('Should validate invalid data passed to renderFrames', () => {fps: 30,height: 1000.5,width: 1000,- id: 'hithere'+ id: 'hithere',},})).rejects.toThrow(@@ -58,7 +58,7 @@ describe('Should validate invalid data passed to renderFrames', () => {fps: 30,width: 1000.5,height: 1000,- id: 'hithere'+ id: 'hithere',},})).rejects.toThrow(