Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

Problem with TS lib autocomplete/intellisense

$
0
0

in the project where i am working we have a component library that we use on various react native projects. Recently the team decided to rewrite this lib using typescript, we now finished this refactor, but the problem is that the VS Code autocomplete is not working with the lib components.

Our tsconfig.json file:

{"compilerOptions": {"allowJs": false,"esModuleInterop": true,"declaration": true,"jsx": "react-native","target": "ESNext","moduleResolution": "node","skipLibCheck": true,"module": "System","outFile": "index.ts","emitDeclarationOnly": true,"strictPropertyInitialization": false  }}

I have put the definition file (d.ts) that is being generated on the project root directory on types, at the package.json config file.

I've tried to generate this definition file inside a @types folder but it didn't work either.

I'm sorry, but i can't share too much from the projects since they're private.

Thank you all in advance.


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>