Files
iNaturalistReactNative/tsconfig.json
Corey Farwell 30762a51ee Update TypeScript config to ignore Flow autgenerated stubs. (#3141)
By doing this, TypeScript will now resolve the types of the imports to the actual library, instead of the packaged stubbed to `any`.

Prior to this change `npx tsc` reported 1121 errors. After this change, `npx tsc` reports 797 errors.
2025-10-16 01:05:32 +02:00

28 lines
741 B
JSON

{
"extends": "@react-native/typescript-config/tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["src/*"],
"appConstants": ["src/appConstants"],
"api": ["src/api"],
"components": ["src/components"],
"dictionaries": ["src/dictionaries"],
"i18n": ["src/i18n"],
"images": ["src/images"],
"navigation": ["src/navigation"],
"providers": ["src/providers"],
"realmModels": ["src/realmModels"],
"sharedHelpers": ["src/sharedHelpers"],
"sharedHooks": ["src/sharedHooks"],
"stores": ["src/stores"],
"styles": ["src/styles"],
"tests": ["tests"],
},
"types": ["nativewind/types"],
},
"exclude": [
"flow-typed"
]
}