DEV Community

Discussion on: Do you prefer TypeScript over vanilla JS?

Collapse
 
feliperes profile image
FelipeRes

Can I use typescript to get the type of external framework objects? If yes, I will change to it now!

Collapse
 
kais_blog profile image
Kai

It depends. Frameworks written in TypeScript export their types directly. For others, e.g. express, the type definitions are provided by the community. You can download them via npm i -D @types/express. For lesser known libraries there might be no type definitions available.