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•10mo ago

Comments

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

Will Meta lose money by laying off 20% of its workforce?

1•alanjacobson•1m ago•0 comments

Anthropic's Hidden Vercel Competitor "Antspace"

https://aprilnea.me/en/blog/reverse-engineering-claude-code-antspace
1•anurag•1m ago•0 comments

The War on Your Brain

https://josebriones.substack.com/p/the-war-on-your-brain
1•toomuchtodo•5m ago•0 comments

The Los Angeles Aqueduct Is Wild

https://www.youtube.com/watch?v=PhW2BjFQCZM
1•twoodfin•9m ago•0 comments

The US goods trade deficit hit a record $1.2T in 2025

https://www.nytimes.com/2026/03/18/business/economy/us-trade-deficit-ai-boom.html
1•qwikhost•12m ago•0 comments

Show HN: VMetal – run a GPU cloud on bare metal without OpenStack

https://www.vmetal.ai/
3•teb510•14m ago•0 comments

The dark psychosomatic history of asthma

https://mecfsscience.org/psychosomatic-history-of-asthma/
2•davikr•20m ago•0 comments

Agent Drift: The Mythical Man-Month and LM Teams (Claude Hallucinates Moltbook)

https://www.causalitylimited.com/p/the-inevitable-agent-drift
1•causalityltd•20m ago•1 comments

Marc Andreesen says he has a zero-introspection mindset

https://www.fastcompany.com/91510739/why-marc-andreessens-zero-introspection-approach-will-get-yo...
3•loteck•23m ago•2 comments

Your Frustration Is the Product

https://daringfireball.net/2026/03/your_frustration_is_the_product
1•celias•25m ago•0 comments

Silicon Valley Bet on War. The Bets Are Paying Off

https://www.nytimes.com/2026/03/18/technology/silicon-valley-war-defense-tech.html
1•bookofjoe•25m ago•1 comments

The Compleat Strategist King of Prussia Store to Close on April 25, 2026

https://www.thecompleatstrategist.com/blogs/compleat-strategic-updates/the-compleat-strategist-ki...
1•jdkee•26m ago•0 comments

Maiao: Easy, Gerrit-style, stacked diffs workflow for GitHub

https://github.com/adevinta/maiao
1•PaulHoule•30m ago•0 comments

White House orders restart of California coastal oil drilling

https://www.latimes.com/california/story/2026-03-13/trump-administration-orders-restart-of-califo...
1•gmays•31m ago•0 comments

AI is the final frontier of Copyleft

https://www.maffulli.net/2026/03/16/ai-final-frontier-of-copyleft/
1•killme2008•32m ago•0 comments

ColorPageLab (printable coloring pages at 300 DPI, no account needed)

https://colorpagelab.com
1•prmishania•36m ago•0 comments

How/why did AMD/ATI fall behind Nvidia? (2015)

https://forums.anandtech.com/threads/how-why-did-amd-ati-fall-behind-nvidia.2434913/
1•stmw•36m ago•1 comments

Books of the Century by Le Monde

https://standardebooks.org/collections/le-mondes-100-books-of-the-century
1•zlu•37m ago•0 comments

South Korea's SDT opens Quantum-AI data center

https://www.datacenterdynamics.com/en/news/south-koreas-sdt-opens-quantum-ai-data-center-deploys-...
1•djinn•37m ago•0 comments

Check mates: Analysis of medieval chess shows vision of equality, mutual respect

https://www.theguardian.com/world/2026/mar/19/medieval-chess-set-equality-respect
2•defrost•38m ago•0 comments

My AI Bot Is Smarter Than Your Honor Roll Student

https://botonomous.ai/post/my-ai-bot-is-smarter-than-your-honor-roll-student-da1e82ea
2•botonomous•38m ago•1 comments

South Korean Police Accidentally Post Cryptocurrency Wallet Password

https://www.schneier.com/blog/archives/2026/03/south-korean-police-accidentally-post-cryptocurren...
1•djinn•38m ago•1 comments

Raspberry Pi Projects That Anyone Can Do

https://www.ifixit.com/News/116276/raspberry-pi-projects-that-anyone-can-do
3•gnabgib•43m ago•0 comments

Ask HN: How do you walk away from a project you care about?

1•rtaylorgarlock•44m ago•0 comments

What about Karpathy Loop?

https://thenewstack.io/karpathy-autonomous-experiment-loop/
2•djinn•45m ago•0 comments

The Flawed Ephemeral Software Hypothesis

https://www.blackhc.net/essays/future_of_software/
2•handfuloflight•45m ago•0 comments

Show HN: Lottery of Birth

https://claude.ai/public/artifacts/b561334a-3b08-41e8-b0e0-c656bdb2e30b
1•atulvi•50m ago•0 comments

Show HN: I created a free tool to analysis your old blog posts for suggestions

https://kitful.ai/write-tools/content-refresh-tool
1•eashish93•51m ago•0 comments

MCP-indexed retrieval vs. file search on a 393-note vault (90 runs)

https://neurostack.sh/blog/vanilla-vs-neurostack-393-notes
2•raphasouthall•51m ago•0 comments

Violations of LLM Review Policies

https://blog.icml.cc/2026/03/18/on-violations-of-llm-review-policies/
2•e08e99f99•52m ago•0 comments