Fix lint issues and improve type safety

This commit is contained in:
Mert Uyanık
2025-10-29 08:40:19 +03:00
parent 4551c030ca
commit f26a76836f
4 changed files with 15 additions and 8 deletions
+5 -3
View File
@@ -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