I created a definition file to override the one from the library but the one from the library seems to have a higher priority
.├── android├── app.json├── babel.config.js├── index.ts├── ios├── metro.config.js├── node_modules├── package.json├── src│ ├── customTypes│ │ └── react-native-track-player│ │ | └── index.d.ts├── __tests__├── tsconfig.json├── tsc.txt├── yarn-error.log└── yarn.lock
The tsconfig :
{"compilerOptions": {"allowJs": false,"allowSyntheticDefaultImports": true,"experimentalDecorators": true,"jsx": "react-native","module": "es2015","moduleResolution": "node","noImplicitAny": false,"noImplicitReturns": true,"noImplicitThis": true,"noUnusedLocals": true,"sourceMap": true,"target": "esnext","lib": ["esnext"],"skipLibCheck": true,"strict": true,"typeRoots": ["src/customTypings","node_modules/@types" ] },"exclude": ["node_modules"],"include": ["index.ts" ]}
When using the traceResolution the compiler resolves the module from cache which does not help to debug :
======== Resolving module 'react-native-track-player' from '/projects/TwoUApp/src/player/ProgressBarMusic.tsx'. ========Resolution for module 'react-native-track-player' was found in cache from location '/projects/TwoUApp/src/player'.======== Module name 'react-native-track-player' was successfully resolved to '/projects/TwoUApp/node_modules/react-native-track-player/index.d.ts' with Package ID 'react-native-track-player/index.d.ts@1.2.3'. ========
How can I override the type definition file or at least invalidate the cache to debug ?
Thanks for your help.