Skip to content

Commit e0c15f9

Browse files
committed
fix: enabling types for CldVideoPlayerp oster to support imageoptions and videooptions
1 parent 69704d0 commit e0c15f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astro-cloudinary/src/components/CldVideoPlayer.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { getVideoPlayerOptions, type ConfigOptions } from '@cloudinary-util/url-
44
55
import { getCloudinaryConfig } from '../lib/cloudinary';
66
import type { CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsLogo } from '@cloudinary-util/types';
7+
import type { GetCldImageUrlOptions } from "../helpers/getCldImageUrl";
8+
import type { GetCldVideoUrlOptions } from "../helpers/getCldVideoUrl";
79
810
const PLAYER_VERSION = '2.0.5';
911
@@ -14,7 +16,7 @@ export interface CldVideoPlayerProps extends Omit<CloudinaryVideoPlayerOptions,
1416
height: CloudinaryVideoPlayerOptions["height"];
1517
id?: string;
1618
logo?: boolean | CldVideoPlayerPropsLogo;
17-
poster?: string; // | GetCldImageUrlOptions | GetCldVideoUrlOptions;
19+
poster?: string | GetCldImageUrlOptions | GetCldVideoUrlOptions;
1820
src: string;
1921
quality?: string | number;
2022
// Redefine to make it required

0 commit comments

Comments
 (0)