Re:The Saga of the Closure Compiler, and Why TypeScript Won
by simonbw on Thursday September 28, 2023 @08:27PM
(#37697814)
I thought I was pretty good at TypeScript, but I can't imagine how I would write that function. Would you mind sharing that?
[ Parent
| on HN ]
Re:The Saga of the Closure Compiler, and Why TypeScript Won
by com2kid on Thursday September 28, 2023 @10:27PM
(#37698602)
See my above reply
https://gist.github.com/alfrdmalr/faa012e421d9f7f60c3e6d2d32...
IIRC in one of the "what's new announcements" from the TS team included sample code to do it as well.
Edit: here is another example of doing it https://gist.github.com/kuroski/9a7ae8e5e5c9e22985364d1ddbf3...
And here is a medium article walking through the code step by step https://medium.com/@fullstack-shepherd/typescript-transformi...
Re:The Saga of the Closure Compiler, and Why TypeScript Won
by EdwardDiego on Friday September 29, 2023 @04:26PM
(#37709699)
That's horrifyingly awesome.