Currently, I have a project with all the necessary JavaScript files already included. However, I am now attempting to transition some of the code to TypeScript for its advantages. One of the libraries I utilize (sweetalert2) is installed in the node_modules folder but not directly accessed from there.
My goal is simply to incorporate it into my TypeScript files to benefit from Intellisense and type checks without actually importing the entire codebase. Importing the code triggers unnecessary functions that are not required.
Despite trying various configurations in tsconfig and references, I haven't been able to make it work successfully yet. There has to be a solution out there!
Is there a method to just reference the types so TypeScript can recognize them and provide benefits without raising complaints?