It's here! 🎉 The 2nd edition of Effective TypeScript is now available in all formats. The bird on the cover is the same, but the content is throughly revised and expanded to reflect how TS is used in 2024. Get your copy today! @OReillyMedia https://t.co/BivGuCs0vp
writing typescript for the first time in 6 years, and i think im enjoying it? new additions like type predicates inference make for a much nicer devex
found a very cool article too documenting the development process of this feature from @danvdk
https://t.co/lxpIFSVb30
@StatisticsFTW@bradzacher Thanks! Curious how it works for you. Right now I think it’s heat for reading code, but for writing you quickly run into https://t.co/eAmgCQM2tZ. I think I know how to fix this.
Just published a big update to my "X-Ray Glasses for any types" VS Code extension: https://t.co/fPOq3Hm0YS
It uses the built-in TypeScript server now, which makes it faster and more likely to work with your project. Give it a try! It found some anys in vscode and tsc itself!
For a weekend project, I wrote a VS Code extension: X-Ray Vision for any types. The scary thing about "any" is that it can appear in surprising place and silently spread. No more! This was frustrating, rewarding, and hopefully useful. Give it a try! https://t.co/fPOq3Hm0YS
@deanylev Thanks, I’ll take a look. It’s almost certainly not finding the lib.d.ts files for your project, so it can’t get types for callbacks like forEach.
@danvdk@JoshuaKGoldberg I suspect you're already aware and this wouldn't work but just in case there is this:
https://t.co/jzw4D5ofqV
Command for getting type info from the existing tsserver.
@acutmore@JoshuaKGoldberg I was not, but I’ll give this a try! Thanks!🙏 This would also solve lots of issues around understanding everyone’s TS configuration.
@ihorvorotnov@BenJ_Ayc0@WebStormIDE noImplicitAny is a TS thing, not an IDE thing. It’s different than this. This will also help you find any types that come from library type definitions (like JSON.parse).