🎥 Make videos programmatically with React
remotion: Require effect documentation links
JonnyBurgerdaa1339ead4a
diff --git a/packages/core/src/effects/effect-types.ts b/packages/core/src/effects/effect-types.tsindex a2ad576c80..503c83d1b1 100644--- a/packages/core/src/effects/effect-types.ts+++ b/packages/core/src/effects/effect-types.ts@@ -37,7 +37,7 @@ export type EffectApplyParams<P, S> = {export type EffectDefinition<P, S = unknown> = {readonly type: string;readonly label: string;- readonly documentationLink?: string | null;+ readonly documentationLink: string | null;readonly backend: Backend;/*** Stable string for comparing effect instances: two descriptors with the samediff --git a/packages/core/src/test/create-effect-disabled.test.ts b/packages/core/src/test/create-effect-disabled.test.tsindex 329e367920..43649dc31c 100644--- a/packages/core/src/test/create-effect-disabled.test.ts+++ b/packages/core/src/test/create-effect-disabled.test.ts@@ -9,6 +9,7 @@ const makeFoo = () =>createEffect<FooParams, null>({type: 'test/foo',label: 'Foo',+ documentationLink: null,backend: '2d',calculateKey: (p) => `foo-${p.amount}`,setup: () => null,@@ -46,6 +47,7 @@ test('createEffect injects `disabled` into the schema for save-effect-props', ()const foo = createEffect<FooParams, null>({type: 'test/foo',label: 'Foo',+ documentationLink: null,backend: '2d',calculateKey: (p) => `foo-${p.amount}`,setup: () => null,diff --git a/packages/core/src/test/create-effect-validate-params.test.ts b/packages/core/src/test/create-effect-validate-params.test.tsindex a60772bf2a..eddd0e6fe1 100644--- a/packages/core/src/test/create-effect-validate-params.test.ts+++ b/packages/core/src/test/create-effect-validate-params.test.ts@@ -9,6 +9,7 @@ const makeEffectWithValidation = () =>createEffect<RequiredParams, null>({type: 'test/required',label: 'Required',+ documentationLink: null,backend: '2d',calculateKey: (p) => `required-${p.value}`,setup: () => null,diff --git a/packages/core/src/test/effect-internals.test.ts b/packages/core/src/test/effect-internals.test.tsindex 928780ac7e..1e24da45d3 100644--- a/packages/core/src/test/effect-internals.test.ts+++ b/packages/core/src/test/effect-internals.test.ts@@ -13,6 +13,7 @@ const makeDef = (): EffectDefinition<unknown, unknown> => ({type,label: type,+ documentationLink: null,backend,calculateKey: () => type,setup: () => null,diff --git a/packages/starburst/src/starburst-effect.ts b/packages/starburst/src/starburst-effect.tsindex 7be8c0b164..e208cd9769 100644--- a/packages/starburst/src/starburst-effect.ts+++ b/packages/starburst/src/starburst-effect.ts@@ -300,6 +300,7 @@ const linkProgram = (export const starburst = createEffect<StarburstEffectParams, StarburstGlState>({type: 'remotion/starburst',label: 'Starburst',+ documentationLink: 'https://www.remotion.dev/docs/starburst/starburst',backend: 'webgl2',calculateKey: (params) => {const r = resolve(params);