frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•12mo ago

Comments

bastawhiz•12mo ago
Is this a problem that people actually have?
xeromal•12mo ago
Fun side project man!
primitivesuave•12mo ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•12mo ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•12mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•11mo ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•11mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

GitHub Copilot Switches to Token-Based Billing for Developers

https://www.aiuniverse.news/the-shift-to-usage-based-ai-billing-arrives-for-developers/
2•aiuniversenews•2m ago•0 comments

Windows quality update: Progress we've made since March

https://blogs.windows.com/windows-insider/2026/05/01/windows-quality-update-progress-weve-made-si...
3•jovial_cavalier•9m ago•0 comments

Word Embedding Is Magic

https://joker666.github.io/blog/2025-11-12-word-embedding-is-magic
1•joker666•9m ago•0 comments

Google-Free Phone Is IP68-Rated and Has a Replaceable Battery

https://www.yankodesign.com/2026/05/01/this-google-free-phone-is-ip68-rated-and-has-a-replaceable...
2•exiguus•12m ago•0 comments

Approaching Zero Bugs?

https://daniel.haxx.se/blog/2026/04/30/approaching-zero-bugs/
2•wrxd•13m ago•0 comments

Enabling a new model for healthcare with AI co-clinician

https://deepmind.google/blog/ai-co-clinician/
2•haskellandchill•15m ago•0 comments

FBI cyber boss: China's hacker-for-hire ecosystem 'out of control'

https://www.theregister.com/2026/04/30/fbi_cyber_boss_chinas_hackerforhire/
1•Bender•15m ago•0 comments

TI Calculator Monopoly Offers Lessons for Educators in the Age of Generative AI

https://www.promarket.org/2024/04/08/tis-calculator-monopoly-offers-lessons-for-educators-in-the-...
1•jamesgill•21m ago•0 comments

Show HN: CD-DA Reader, Rust library to read audio CD data

https://github.com/Bloomca/rust-cd-da-reader
1•bloomca•22m ago•0 comments

Keyboard Sounds Pro – Now Available on macOS

https://keyboardsounds.pro/
1•fisc•23m ago•0 comments

Beijing Is Not Playing a Long Game

https://sharptext.net/2026/beijing-is-not-playing-the-long-game/
1•skmurphy•25m ago•3 comments

Amazon Powers ICE. Its Workers Aren't Happy

https://www.motherjones.com/politics/2026/05/amazon-powers-ice-its-workers-arent-happy/
8•cdrnsf•25m ago•0 comments

Ask HN: When will GitHub allow CoPilot AI programmer for new customers again?

2•roschdal•26m ago•1 comments

Does Trade Cause Peace?

https://www.ft.com/content/d141cf41-e47a-4657-9f6b-ed26e6c59ac6
1•paulpauper•27m ago•0 comments

Should We Separate the Art from the Artist?

https://opentodebate.substack.com/p/should-we-separate-art-from-the-artist
2•paulpauper•27m ago•0 comments

Rich People Didn't Look Like This Before

https://www.nytimes.com/2026/04/30/opinion/plastic-surgery-rich-face.html
1•paulpauper•28m ago•0 comments

Show HN: Building self-evolving AI Agents without training

https://getreflect.starlight-search.com
2•akshayballal95•28m ago•0 comments

It's Not a Values Crisis, It's a Housing Crisis

https://maxmautner.com/2026/04/30/housing-crisis-not-values-crisis.html
1•mslate•29m ago•0 comments

Show HN: Aide-memory – persistent memory for AI coding agents and teams

https://www.aide-memory.dev/blog/launch
2•ahmedmeky•32m ago•0 comments

Flue Sandbox Agent Framework

https://flueframework.com
2•kalendos•32m ago•0 comments

Ask HN: If there're so many advanced vibecoders mad at GitHub, where's everyone?

3•foundatron•34m ago•1 comments

When your board member / VC partner leaves?

https://www.motivenotes.ai/p/when-your-vc-leaves-you-are-fundraising
1•swapniljain•34m ago•0 comments

Federation Has a European Legal Problem

https://connectedplaces.online/federation-has-a-european-legal-problem/
2•HotGarbage•35m ago•0 comments

My $5K smart bed needs to shut the hell up

https://www.theverge.com/column/921654/optimizer-eight-sleep-ai-summaries-health-wellness
2•jerlam•38m ago•0 comments

Ask HN: Who wants to be fired? (May 2026)

3•evo_9•39m ago•2 comments

Where to buy a non-Apple, non-Google smartphone

https://www.theregister.com/2026/05/01/buy_a_foss_fondleslab/
2•Bender•40m ago•0 comments

Metropolis 1998 Brings Classic SimCity-style City Building back to life

https://www.generationamiga.com/2026/05/01/metropolis-1998-brings-classic-simcity-style-city-buil...
2•YesBox•40m ago•0 comments

Kanye West Bought an Architectural Treasure Then Gave It a Violent Remix (2024)

https://www.newyorker.com/magazine/2024/06/17/kanye-west-tadao-ando-beach-house-malibu
2•tolerance•40m ago•0 comments

Man versus Horse Marathon

https://en.wikipedia.org/wiki/Man_versus_Horse_Marathon
1•gmays•43m ago•0 comments

Credit cards are vulnerable to brute force attacks

https://metin.nextc.org/posts/Credit_Cards_Are_Vulnerable_To_Brute_Force_Kind_Attacks.html
30•kodbraker•44m ago•21 comments