Skip to content

🎥 Make videos programmatically with React

as const is nice :fire:

Jonny Burger8e65b8119c59
diff --git a/packages/example/src/Video.tsx b/packages/example/src/Video.tsx
index 332c04c478..2bea0dae64 100644
--- a/packages/example/src/Video.tsx
+++ b/packages/example/src/Video.tsx
@@ -756,33 +756,33 @@ export const Index: React.FC = () => {
]),
})}
defaultProps={{
- vehicle: 'car' as const,
- other: 'hi' as const,
+ vehicle: 'car',
+ other: 'hi',
abc: {
union: null,
- def: {unionArray: [null], pef: 'hu' as const},
- jkl: 'sting' as const,
- xyz: 'hi' as const,
+ def: {unionArray: [null], pef: 'hu'},
+ jkl: 'sting',
+ xyz: 'hi',
},
array: [
- {a: 'a' as const, b: 'bbbbb' as const},
- {a: 'a' as const, b: 'b' as const},
+ {a: 'a', b: 'bbbbb'},
+ {a: 'a', b: 'b'},
],
array2: [[12], [12]],
mynum: 4,
value: true,
haha: null,
- yo: {hi: ' there' as const},
- un: 'hi' as const,
- num: '179' as const,
+ yo: {hi: ' there'},
+ un: 'hi',
+ num: '179',
date: new Date('1999-02-12T20:20:00.000Z'),
values: 'a' as const,
- supersuperlongvalueabcdefghji: 'hi' as const,
+ supersuperlongvalueabcdefghji: 'hi',
incompatible: null,
longEnum: 'k' as const,
color: '#eb3a60' as const,
nullable: null,
- optional: undefined,
+ optional: 'hihi',
}}
durationInFrames={150}
/>