Fix TypeScript ref typings and lint errors

This commit is contained in:
Mert Uyanık
2025-10-29 09:32:44 +03:00
parent 53de7f8658
commit 3ccdd55bdf
6 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
import type { CSSProperties, RefObject } from 'react'
import type { CSSProperties, MutableRefObject } from 'react'
export interface SubtitleTrack {
src: string
@@ -87,8 +87,8 @@ export interface PlayerContextValue {
videoState: VideoState
uiState: UIState
settings: PlayerSettings
videoRef: RefObject<HTMLVideoElement>
containerRef: RefObject<HTMLDivElement>
videoRef: MutableRefObject<HTMLVideoElement | null>
containerRef: MutableRefObject<HTMLDivElement | null>
// Video controls
play: () => void
@@ -109,7 +109,7 @@ export interface PlayerContextValue {
toggleSettings: () => void
// Settings
setQuality: (quality: VideoQuality) => void
setQuality: (quality: VideoQuality | null) => void
setSubtitle: (subtitle: SubtitleTrack | null) => void
setAudioTrack: (audioTrack: AudioTrack | null) => void
}