DEV Community

Discussion on: Typescript for beginners: number

Collapse
 
eljayadobe profile image
Eljay-Adobe

One of the many beauties of TypeScript is that type annotation of parameters and returns allows for static type checking at transpile time, which eliminates a big category of errors that otherwise don't show up until run time. (Even if there is thorough unit testing.)

For small programs written by one person, that's not a huge win. But for medium or large programs, or even small programs written by two or more people... it's a huge grief saver.