File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ const NewComponentUsage = () => (
7575 muted : true ,
7676 loop : true
7777 } }
78- duration = { 1 }
78+ duration = '1%'
7979 resize = { {
8080 height : 200 ,
81- width : 200 ,
81+ width : 200
8282 } }
8383 videoCodec = { {
8484 use : 'h264' ,
@@ -92,7 +92,6 @@ const NewComponentUsage = () => (
9292 ] }
9393 roundCorners = { 100 }
9494 rotate = { 50 }
95- startOffset = { 1 }
9695 />
9796 </ div >
9897 </ >
Original file line number Diff line number Diff line change 11import { Duration } from '../transformationTypes/duration' ;
22
3- // FIXME verify whether duration du_ accepts `%` and not only `p`
4- export const parseDuration = ( duration : Duration ) : `du_${string } ` => `du_${ duration } ` ;
3+ export const parseDuration = ( duration : Duration ) => `du_${ String ( duration ) . replace ( '%' , 'p' ) } ` ;
You can’t perform that action at this time.
0 commit comments