PodRocket cover image

Matt Pocock answers your TypeScript questions

PodRocket

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.

Play episode from 27:25
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app