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•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y 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•1y 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•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y 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•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: UAP Archive – a Rust CLI to archive war.gov/UFO Release 01

https://github.com/Pym/UAP-Archive
1•Pym•3m ago•0 comments

After USDA request, Indiana plant biologist locked out of lab by school

https://www.science.org/content/article/after-usda-request-indiana-plant-biologist-locked-out-lab...
2•doener•3m ago•0 comments

Republic of Kiribati

https://en.wikipedia.org/wiki/Kiribati
1•doener•6m ago•0 comments

Apple Store education purchase verification process expands to US

https://appleinsider.com/articles/26/05/08/apple-store-education-purchase-verification-process-ex...
2•apparent•6m ago•0 comments

Why modern parents feel more sleep deprived than our ancestors did

https://www.bbc.com/future/article/20260508-parents-in-ancient-times-felt-less-sleep-deprived-wha...
2•1659447091•12m ago•0 comments

The Flickr Commons

https://flickr.com/commons
2•gone35•13m ago•0 comments

Claude Code auto daily /weekly recap notes

https://github.com/vibe-log/vibe-log-cli
2•noashavit•15m ago•1 comments

Frona v2026.5.0 – self-hosted personal AI assistant

https://github.com/fronalabs/frona/releases/tag/v2026.5.0
2•syncerx•15m ago•0 comments

Argus – RAG based vulnerability scanner

https://github.com/abhishekamralkar/argus
2•amralkara•16m ago•0 comments

New technique radically boosts biogas yields from sewage sludge

https://newatlas.com/energy/biogas-boost-sewage-sludge/
2•breve•19m ago•0 comments

Childhood Computing

https://lilysthings.org/blog/childhood-computing/
2•i_lost_my_bagel•21m ago•0 comments

Is it still all about the people?

https://lisacrispin.com/2026/04/29/is-it-still-all-about-the-people/
2•adrianhoward•22m ago•0 comments

Misplaced Panic over AI Progress

https://garymarcus.substack.com/p/misplaced-panic-over-ai-progress
3•agluszak•29m ago•0 comments

Maryland citizens hit with $2B power grid upgrade for out-of-state AI

https://www.tomshardware.com/tech-industry/artificial-intelligence/maryland-citizens-slapped-with...
6•lemonberry•32m ago•0 comments

Ask HN: Which LLM are you using to evaluate your ideas?

2•Marius77•34m ago•1 comments

The impossible song we'll remember in 500 years [video]

https://www.youtube.com/watch?v=XLqhOEzpWyo
3•layer8•39m ago•0 comments

Freediving, Embodiment and Humanity

https://tracesofhumanity.org/freediving-embodiment-and-humanity/
2•nathanh•42m ago•0 comments

The Psychology of Choice in an Age of Abundance

https://medium.com/@sachin255701/the-psychology-of-choice-in-an-age-of-abundance-8843d4e49ce7
2•_day_dr3am3r_•43m ago•1 comments

Fluiq – LLM observability, evals and optimization in two lines of Python

https://getfluiq.com
2•SaurabhKumbhar•45m ago•0 comments

Show HN: Aura – Desktop AI Orchestration IDE with Planner/Worker Architecture

https://github.com/CarpseDeam/Aura-IDE
3•ConfusedData89•49m ago•0 comments

Jumping Spiders Shouldn't Be This Smart [video]

https://www.youtube.com/watch?v=kRQMOF5c2Z8
3•hermitcrab•50m ago•0 comments

Is this a bad moment for a math career?

https://mathoverflow.net/questions/486675/is-this-a-bad-moment-for-a-math-career
2•bananaflag•51m ago•0 comments

Ask HN: Will low quality AI customer support be the new normal?

5•0-bad-sectors•51m ago•1 comments

A NLM enhanced writers workbench

https://www.redwoodrhetorica.com/
2•homeonthemtn•55m ago•1 comments

Linux gaming is faster because Windows APIs are becoming Linux kernel features

https://www.xda-developers.com/linux-gaming-is-getting-faster-because-windows-apis-are-becoming-l...
5•haunter•55m ago•2 comments

Nuke All Routers

https://github.com/maxbrito500/esp32-c5-deauth
3•nunobrito•58m ago•0 comments

Forza Horizon 6 just leaked on Steam, letting pirates play it

https://www.neowin.net/news/looks-like-forza-horizon-6-just-leaked-on-steam-letting-pirates-play-...
5•bundie•1h ago•1 comments

Hair Maths: Curl Geometry and Braids [pdf]

https://tomrocksmaths.com/wp-content/uploads/2025/09/hair-maths-curl-geometry-and-braids-copy-3-i...
3•marysminefnuf•1h ago•0 comments

Low Frequencies

https://computer.rip/2026-05-09-extremely-low-frequencies.html
3•Sniffnoy•1h ago•1 comments

Droidian, a Phone OS for Patient People

https://theprivacydad.com/droidian-an-awesome-phone-os-for-patient-people-guest-post/
3•Brajeshwar•1h ago•0 comments