Share platform-split module types via .shared.ts files

Extract the prop/control types (and the video error classes) that were
duplicated between web implementations and their native throw-stubs into
sibling .shared.ts files, so both variants reference one definition and
cannot drift.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCuMKXWHuyGoNhTVAHBMyk
This commit is contained in:
Claude
2026-07-12 14:59:30 +00:00
committed by Samuel Newman
parent 47293de3ac
commit f6a16c1cef
13 changed files with 81 additions and 91 deletions
@@ -1,6 +1,5 @@
export function SubtitleFilePicker(_props: {
onSelectFile: (file: File) => void
disabled?: boolean
}): never {
import {type SubtitleFilePickerProps} from './SubtitleFilePicker.shared'
export function SubtitleFilePicker(_props: SubtitleFilePickerProps): never {
throw new Error('SubtitleFilePicker is a web-only component')
}