I'm pleased to see that NPM has now included support for importing TypeScript type wrappers. However, I've noticed inconsistency in how these wrappers are maintained. For instance, when attempting to import "node-git" and "@types/node-git", I found that even though they both worked, they presented different APIs that didn't integrate well together.
What is the recommended approach in this situation? Should I first import the type wrapper for a library, verify its version, and then specifically import that version of the library? Do I need to familiarize myself with creating my own TypeScript wrappers (and can they be generated using tools)?
Thank you in advance for any advice!