Skip to content

Commit 196f840

Browse files
fix: removed type support for thumbnail in videos
1 parent 8826c84 commit 196f840

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

packages/react/src/CloudinaryVideo.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export type VideoTransformationProps = {
4848
duration?: Duration;
4949
startOffset?: StartOffset;
5050
videoCodec?: VideoCodec;
51-
resize?: Resize;
51+
resize?: Exclude<Resize, { mode: 'thumbnail' }>;
5252
};
5353

5454
type VideoV3Props = {
@@ -57,7 +57,6 @@ type VideoV3Props = {
5757
videoProps?: React.HTMLProps<HTMLVideoElement>
5858
} & VideoTransformationProps;
5959

60-
6160
interface VideoV2Props extends React.HTMLProps<HTMLVideoElement> {
6261
src?: never;
6362
cldVid: UrlGenCloudinaryVideo;

packages/react/src/demo.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,8 @@ const NewComponentUsage = () => (
7777
}}
7878
duration={1}
7979
resize={{
80-
mode: 'thumbnail',
8180
height: 200,
8281
width: 200,
83-
gravity: 'auto'
8482
}}
8583
videoCodec={{
8684
use: 'h264',

0 commit comments

Comments
 (0)