Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /