Sometimes I want to use a library that can be installed via npm i x, but npm i @types/x gives me a 404. On rare occasions, I do find a d.ts file directly inside node_modules/x.
I've followed the TypeScript compiler error messages a couple of times, which led me to define my own d.ts file for that library, but both times--for reasons I can't remember--I could never get my project to compile with that library's d.ts file in my local project.
What are my options here? I'm looking for a nice intersection between type safety for the library API, smallest effort required on my part, and good practice.
I tried so many iterations I want to say I tried that. But I'm pretty sure I didn't try 'blah**.js**' ever.