billybones123·il y a 5 ans·discussThis is the use case that I'm familiar with. For packages that don't bundle types, type definitions are often available through DefinitelyTyped[0]. npm install --save-dev @types/node > The types should then be automatically included by the compiler[0] https://github.com/DefinitelyTyped/DefinitelyTyped
billybones123·il y a 5 ans·discussI have wanted this too, and your comment inspired me to write a script[0]. I plan to submit extensions for chrome and firefox when I find some time.[0] https://gist.github.com/bearr/05f4b41478acb1fdd3b58583d5e30c...
> The types should then be automatically included by the compiler
[0] https://github.com/DefinitelyTyped/DefinitelyTyped