
Matt Pocock answers your TypeScript questions
PodRocket - A web development podcast from LogRocket
00:00
How to Work With Type Declarations for External Libraries
The best way to work with type declarations for external libraries is through declaration files. Every type that you put in a declaration file goes global affects your entire project. TypeScript has a pretty good section on declaration files. I don't have much of it on total TypeScript actually. But a lot of what you can do really is through declaring files, through putting things in the global scope.
Transcript
Play full episode