Fix lint issues and improve type safety
This commit is contained in:
+5
-3
@@ -1,3 +1,5 @@
|
||||
import type { CSSProperties, RefObject } from 'react'
|
||||
|
||||
export interface SubtitleTrack {
|
||||
src: string
|
||||
lang: string
|
||||
@@ -39,7 +41,7 @@ export interface VideoPlayerProps {
|
||||
keyboardShortcuts?: boolean
|
||||
pictureInPicture?: boolean
|
||||
className?: string
|
||||
style?: React.CSSProperties
|
||||
style?: CSSProperties
|
||||
onPlay?: () => void
|
||||
onPause?: () => void
|
||||
onEnded?: () => void
|
||||
@@ -85,8 +87,8 @@ export interface PlayerContextValue {
|
||||
videoState: VideoState
|
||||
uiState: UIState
|
||||
settings: PlayerSettings
|
||||
videoRef: React.RefObject<HTMLVideoElement>
|
||||
containerRef: React.RefObject<HTMLDivElement>
|
||||
videoRef: RefObject<HTMLVideoElement>
|
||||
containerRef: RefObject<HTMLDivElement>
|
||||
|
||||
// Video controls
|
||||
play: () => void
|
||||
|
||||
Reference in New Issue
Block a user