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:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user