🎥 Make videos programmatically with React
a value of type
Jonny Burger4175e3fa5a82
diff --git a/packages/core/src/test/volume-prop.test.ts b/packages/core/src/test/volume-prop.test.tsindex 0b5b2f0fec..691bb5bd99 100644--- a/packages/core/src/test/volume-prop.test.ts+++ b/packages/core/src/test/volume-prop.test.ts@@ -39,6 +39,6 @@ describe('evaluateVolume throws exception', () => {expectToThrow(() => {// @ts-expect-errorevaluateVolume(toEvaluate);- }, new RegExp(`You passed in a a function to the volume prop but it did not return a number but a vaue of type ${typeof invalidFrame} for frame ${invalidFrame}`));+ }, new RegExp(`You passed in a a function to the volume prop but it did not return a number but a value of type ${typeof invalidFrame} for frame ${invalidFrame}`));});});diff --git a/packages/core/src/volume-prop.ts b/packages/core/src/volume-prop.tsindex 8c76adf177..224d7849fb 100644--- a/packages/core/src/volume-prop.ts+++ b/packages/core/src/volume-prop.ts@@ -16,7 +16,7 @@ export const evaluateVolume = ({const evaluated = volume(frame);if (typeof evaluated !== 'number') {throw new TypeError(- `You passed in a a function to the volume prop but it did not return a number but a vaue of type ${typeof evaluated} for frame ${frame}`+ `You passed in a a function to the volume prop but it did not return a number but a value of type ${typeof evaluated} for frame ${frame}`);}if (Number.isNaN(evaluated)) {