Skip to content

Commit 584798d

Browse files
YannickLeRouxLonelyCpp
authored andcommitted
make videoId props optional
Shouldnt we make videoId optional if we want to pass just a playList? Ideally a conditional type should probably be created so we must have videoId or playList, but not both?
1 parent 7a627de commit 584798d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface YoutubeIframeProps {
6060
/**
6161
* Specifies the YouTube Video ID of the video to be played.
6262
*/
63-
videoId: string;
63+
videoId?: string;
6464
/**
6565
* Specifies the playlist to play. It can be either the playlist ID or a list of video IDs
6666
*

0 commit comments

Comments
 (0)