DEV Community

Discussion on: Convince me that types are awesome

Collapse
 
benlesh profile image
Ben Lesh

Static analysis. Automatic refactoring. Code transformations.

Types enabled the RxJS team to write code transformations that statically analyzed RxJS 5.0 code written in TypeScript and update it automatically to RxJS 6.0 code. Updating all imports, transforming older dot-chained operators to newer piped function syntax, etc. This enabled Google to update thousands and thousands of files in minutes and migrate every Google project to the latest version of RxJS easily. This would not have been possible without type information.