Skip to content

Commit 2a3234c

Browse files
wkoutreLonelyCpp
authored andcommitted
improvement: update TS typing for YoutubeIframeProps["onChangeState"]
1 parent 74b4e88 commit 2a3234c

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
@@ -118,7 +118,7 @@ export interface YoutubeIframeProps {
118118
/**
119119
* callback for when the player's state changes.
120120
*/
121-
onChangeState?: (event: string) => void;
121+
onChangeState?: (event: PLAYER_STATES) => void;
122122
/**
123123
* callback for when the fullscreen option is clicked in the player. It signals the new fullscreen state of the player.
124124
*/

0 commit comments

Comments
 (0)