Skip to content

Commit c4e724a

Browse files
authored
Update index.d.ts
You should never use a capital letter for Types, it causes issues.
1 parent ff1a951 commit c4e724a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

index.d.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ export interface YoutubeIframeProps {
3333
*
3434
* Note: Embedded players must have a viewport that is at least 200px by 200px. If the player displays controls, it must be large enough to fully display the controls without shrinking the viewport below the minimum size. We recommend 16:9 players be at least 480 pixels wide and 270 pixels tall.
3535
*/
36-
height: Number;
36+
height: number;
3737
/**
3838
* width of the webview container
3939
*
4040
* Note: Embedded players must have a viewport that is at least 200px by 200px. If the player displays controls, it must be large enough to fully display the controls without shrinking the viewport below the minimum size. We recommend 16:9 players be at least 480 pixels wide and 270 pixels tall.
4141
*/
42-
width?: Number;
42+
width?: number;
4343
/**
4444
* Specifies the YouTube Video ID of the video to be played.
4545
*/
46-
videoId: String;
46+
videoId: string;
4747
/**
4848
* Specifies the playlist to play. It can be either the playlist ID or a list of video IDs
4949
*
@@ -53,20 +53,20 @@ export interface YoutubeIframeProps {
5353
* @example
5454
* playList={['QRt7LjqJ45k', 'fHsa9DqmId8']}
5555
*/
56-
playList?: Array<String> | String;
56+
playList?: Array<string> | string;
5757
/**
5858
* Flag to tell the player to play or pause the video.
5959
*/
60-
play?: Boolean;
60+
play?: boolean;
6161

6262
/**
6363
* Flag to tell the player to mute the video.
6464
*/
65-
mute?: Boolean;
65+
mute?: boolean;
6666
/**
6767
* Sets the volume. Accepts an integer between `0` and `100`.
6868
*/
69-
volume?: Number;
69+
volume?: number;
7070
/**
7171
* A style prop that will be given to the webview
7272
*/
@@ -78,7 +78,7 @@ export interface YoutubeIframeProps {
7878
/**
7979
* This sets the suggested playback rate for the current video. If the playback rate changes, it will only change for the video that is already cued or being played.
8080
*/
81-
playbackRate?: Number;
81+
playbackRate?: number;
8282
/**
8383
* This event fires if an error occurs in the player. The API will pass an error string to the event listener function.
8484
*/
@@ -92,32 +92,32 @@ export interface YoutubeIframeProps {
9292
*
9393
* Works only if the playlist is a list of video IDs.
9494
*/
95-
playListStartIndex?: Number;
95+
playListStartIndex?: number;
9696
initialPlayerParams?: InitialPlayerParams;
9797
/**
9898
* Changes user string to make autoplay work on the iframe player for some android devices.
9999
*/
100-
forceAndroidAutoplay?: Boolean;
100+
forceAndroidAutoplay?: boolean;
101101
/**
102102
* callback for when the player's state changes.
103103
*/
104-
onChangeState?: (event: String) => void;
104+
onChangeState?: (event: string) => void;
105105
/**
106106
* callback for when the fullscreen option is clicked in the player. It signals the new fullscreen state of the player.
107107
*/
108-
onFullScreenChange?: (status: Boolean) => void;
108+
onFullScreenChange?: (status: boolean) => void;
109109
/**
110110
* callback for when the video playback quality changes. It might signal a change in the viewer's playback environment.
111111
*/
112-
onPlaybackQualityChange?: (quality: String) => void;
112+
onPlaybackQualityChange?: (quality: string) => void;
113113
/**
114114
* callback for when the video playback rate changes.
115115
*/
116-
onPlaybackRateChange?: (event: String) => void;
116+
onPlaybackRateChange?: (event: string) => void;
117117
/**
118118
* Flag to decide whether or not a user can zoom the video webview.
119119
*/
120-
allowWebViewZoom?: Boolean;
120+
allowWebViewZoom?: boolean;
121121
/**
122122
* Set this React Ref to use ref functions such as getDuration.
123123
*/
@@ -126,7 +126,7 @@ export interface YoutubeIframeProps {
126126
* scale factor for initial-scale and maximum-scale in
127127
* <meta /> tag on the webpage
128128
*/
129-
contentScale?: Number;
129+
contentScale?: number;
130130
}
131131

132132
export interface YoutubeMeta {

0 commit comments

Comments
 (0)