Tonio Loewald’s Post

tjs-lang passed a couple of milestones over the last few days. It can already transpile itself, so it’s “self-hosted”. It can now transpile tosijs’s codebase and it can capture and re-emit ts declarations, while adding metadata to the tjs intermediate code to help anyone migrating from ts to tjs to replace complex generic types with simple predicates. Along the way tjs helped nail down a subtle and hard to replicate bug that has lingered for years. And then we decided to transpile a bunch of thorny libraries starting with Zod and ending with Effect.js (120k loc and truly perversely complex types). #javascript #typescript

If you want to play with it yourself it’s at platform.tosijs.net.

Like
Reply

To view or add a comment, sign in

Explore content categories