Add moduleSuffixes to tsconfig

Resolve platform-specific modules native-first ([".ios", ".android",
".native", ""]) during typechecking, matching the react-native
customConditions already set by the base config. Typecheck now sees the
.native variants of web-only modules, so their throw-stubs gain real
signatures (typed props, never return, error class exports) to keep
their web consumers typechecking correctly.

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-11 19:38:43 +00:00
committed by Samuel Newman
parent f9384e44c7
commit 47293de3ac
6 changed files with 49 additions and 5 deletions
@@ -1,3 +1,6 @@
export function SubtitleFilePicker() {
export function SubtitleFilePicker(_props: {
onSelectFile: (file: File) => void
disabled?: boolean
}): never {
throw new Error('SubtitleFilePicker is a web-only component')
}