frontpage.
newsnewestaskshowjobs

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/

Dht-spy – BitTorrent DHT telemetry

https://dhtspy.net/
1•ogurechny•2m ago•0 comments

Show HN: Desktui – a remote desktop client for your terminal

https://github.com/mishushakov/desktui
1•ushakov•5m ago•0 comments

DeepSeek pause fundraise after comments on compute gap to US leaked (transcript) [pdf]

https://github.com/demo-zexuan/liang-wenfeng-investor-meeting-2026-7-22/blob/master/%E6%A2%81%E6%...
3•oliculipolicula•5m ago•0 comments

Htmx 4: The Game

https://swag.htmx.org/products/htmx-4-the-game
2•geophph•19m ago•0 comments

Show HN: Routeveil – Shared-element and page transitions engine for React Router

https://www.routeveil.dev/lab/shared-elements
2•milkeviich•25m ago•0 comments

The Assumption of Maria (near future sci-fi)

https://www.lightspeedmagazine.com/fiction/the-assumption-of-maria/
5•swernli•26m ago•0 comments

The Dundee Time Capsule

https://www.greatwardundee.com/the-home-front/the-dundee-time-capsule/
1•xg15•26m ago•0 comments

"Loneliness influencers" are all the rage, but everyone is wrong about them

https://preta6.substack.com/p/loneliness-influencers-are-all-the
1•ropili•29m ago•0 comments

For coding agents, real-time collaboration beats the "wisdom of the crowd"

https://ykdojo.github.io/antigravity-cloud-run/experiments/collaboration-vs-wisdom-of-the-crowd/
2•ykev•30m ago•0 comments

Quantum internet leaves the lab

https://news.northwestern.edu/stories/2026/07/quantum-internet-leaves-the-lab
4•hhs•30m ago•0 comments

Algorithm-designed photonic circuits beyond human intuition

https://seas.harvard.edu/news/algorithm-designed-photonic-circuits-beyond-human-intuition-0
2•hhs•37m ago•0 comments

Where Your Mind Goes When You Stop

https://lanternhours.substack.com/p/where-your-mind-goes-when-you-stop
1•cuongvtran•39m ago•0 comments

Why Losing an Argument Feels Like Losing Yourself

https://lanternhours.substack.com/p/why-losing-an-argument-feels-like
2•cuongvtran•40m ago•0 comments

Clinical Failure Rates over the Decades: Yikes

https://www.science.org/content/blog-post/clinical-failure-rates-over-decades-yikes
8•EA-3167•40m ago•4 comments

As Supreme Court decisions grow sharper, study examines justices’ concessions

https://www.umass.edu/news/article/supreme-court-decisions-grow-sharper-study-examines-justices-c...
4•hhs•41m ago•0 comments

Trump's Push to Build Data Centers for the US Military

https://www.motherjones.com/politics/2026/07/data-centers-us-military-bases-public-lands/
2•cdrnsf•41m ago•0 comments

Ubuntu Pro auth service down?

https://ubuntu.com/login?next=/pro/attach?
1•spl757•42m ago•1 comments

Pangrandomonium: Rhizome Function Anagram Random Generator

https://zenodo.org/records/21551292
1•OCTADE•42m ago•1 comments

Wreckage of 1952 Pan Am plane crash found near Puerto Rico

https://www.theguardian.com/world/2026/jul/22/wreckage-found-1952-pan-am-plane-crash-air-safety-p...
2•firasd•43m ago•0 comments

Show HN: Cross-Platform Flutter and React-Native Plugin – FFmpeg-Kit-Extended

1•akashskypatel•45m ago•0 comments

What is happening to jobs? Separating AI hype from reality

https://siepr.stanford.edu/publications/policy-brief/what-really-happening-jobs-separating-ai-hyp...
3•pod_krad•47m ago•0 comments

Cloudflare's new AI traffic options for customers

https://blog.cloudflare.com/content-independence-day-ai-options/
2•alphabetatango•47m ago•0 comments

Show HN: Hubo – two agents that implement and review code until they agree

https://github.com/h0ngcha0/hubo
1•hongchao•48m ago•0 comments

Littleman Programming

https://icfpcontest2026.com/textbook#little%20men
2•irs•53m ago•0 comments

Nvprobe – Open-source, zero-setup CLI for CUDA benchmarks

https://github.com/SergioZ3R0/nvprobe
1•SergioZ3R0•54m ago•0 comments

Waymo's driverless cars involved in 68% fewer crashes than human drivers

https://www.cbc.ca/news/world/waymo-driverless-car-safety-study-9.7282895
4•uladzislau•55m ago•0 comments

Happy2 vs. Buzz

https://happy.engineering/happy2/docs/comparisons/buzz/
2•hmokiguess•57m ago•0 comments

Kenmore Air crash: How civilians 'saved the day'

https://www.seattletimes.com/seattle-news/how-recreational-boaters-saved-the-day-after-kenmore-ai...
4•ynac•58m ago•0 comments

Best and Worst Habits for Your Liver

https://www.nytimes.com/2026/07/23/well/liver-health-tips.html
1•brandonb•58m ago•1 comments

Memory-level parallelism: AMD is the king

https://lemire.me/blog/2026/07/25/memory-level-parallelism-amd-is-the-king/
2•mfiguiere•59m ago•0 comments