🤝 Open source advocate 👽 Maintainer of @stryker_mutator 💼 Manager and trainer @InfoSupportBV 💚 Loves green energy and vegetables

Holland and Belgium
Nico Jansen retweeted
TypeScript 5.8 Beta is released 🎉 🔶 "nodenext" gets require(ESM) 🔶 "nodenext" deprecates Import Assertions 🔷 Checked Conditional Return Types 🔷 erasableSyntaxOnly flag for Node 🔷 Perf: libReplacement flag 🔷 Perf: Program load/update optimizations
We just released the beta for TypeScript 5.8! This release brings support for Node.js' require(ESM), smarter/safer checks for functions using advanced types, a few great optimizations for editor scenarios, and more. Give it a try! devblogs.microsoft.com/types…
2
10
99
41,146
I'm creating `type-annotationify`, a package that transforms your TS code to TS with erasable type-annotations. It already supports constructor parameter properties, enums and <type> assertions. See github.com/nicojs/type-annot… I'm in the process of adding namespace support 🧵
1
56
So, for this approach to work, I would need to transform protected to public and private to either public or #esprivate. Sheesh 😔 🧵
1
91
So this is where I now stand. My idea is to transform classes to use `public` instead of `protected` / `private` and use a local variable shadowing the actual namespace. Does anyone have suggestions or ideas? Feel free to comment on the issue or here. github.com/nicojs/type-annot…
41
Want to help? Please try it out on your code and let me know what I missed. I'm also looking for projects that use a lot of namespaces, so I can test that out as well (I don't use them myself). Spread the word; TypeScript is JavaScript with type annotations!
1
37
How can we represent a TS enum in plain type-annotations TS while remaining fully backward compatible? I'm thinking this. I would love some feedback from the community.
1
1
71
Shoutout and thanks to @Vaxilart and Marcelo Shima (github/mshima) for onboarding me, and @kom_256 as another existing maintainer for letting me join on! ❤️
Exciting times for @yeoman: @kom_256 and I are taking on project maintenance! 🎩 Yeoman is one of *the* classic web dev tools. It helped pave the way for many of today's create-*s. We're resuming work to get through backlogs & dependency updates. github.com/yeoman/yeoman/iss… 1/🧵
2
6
614
Does anyone know of a tool that can convert enums and parameter properties to type-annotations-compliant TypeScript? Otherwise, I might build one. Seems extremely valuable in the long run.
1
80
cc @mattpocockuk @robpalmer2 I consider you to be the experts here. Any ideas? I think automatically converting namespaces is impossible, so I left that out. 🙄
1
1
36
Lol! Typed-inject, my side project of my side project, has kind of exploded these past few years. Awesome to see, it warms my heart that I made something that others find genuinely useful ♥
1
1
83