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.