DEV Community

Discussion on: Is 2019 the year of TypeScript?

Collapse
 
chiangs profile image
Stephen Chiang

I'm curious as to what types you're missing as well.

I have not encountered that yet. An interesting quirk is that if you only need Type checking then you should make an interface. Interfaces are thrown out at compile time which leaves your code lighter. Classes are kept and should only be used if you actually need to instantiate an instance of that type during runtime.