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:
@@ -3,6 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"jsx": "react-jsx",
|
||||
"module": "esnext",
|
||||
"moduleSuffixes": [".ios", ".android", ".native", ""],
|
||||
"lib": ["dom", "esnext"],
|
||||
"types": ["node", "jest"],
|
||||
"paths": {
|
||||
|
||||
Reference in New Issue
Block a user