Introducing TypeScript Transformer 3
News Source : Rubenvanassche.com
News Summary
- Three years in the making, TypeScript Transformer 3 is finally here.
- In this blog post we go through what's new and why we did a rewrite.
- In the previous version the flow was cumbersome: you had a Collector that would search for classes within your codebase satisfying a certain condition.
- In v3 we've ditched the Collector concept.
- We take every class within your application, pass it through all transformers and the first transformer to return a valid Transformed object wins.
- For example, a Transformed provider could generate a Laravel route helper function that creates route URLs in TypeScript like it would in PHP.
- Another could add additional types like paginated collections to your TypeScript codebase, or share permission definitions and configuration values with the frontend.
Two years ago on a Friday I started working on a crazy plan take one of my most used PHP packages, nuke every line of code and start rewriting it from scratch.What initially felt like something th [+17748 chars]
Never miss a story from us, subscribe to our newsletter