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/

Show HN: Motiscope – Rebuild web animations from screen recordings

https://kumarsashank.github.io/motiscope/
1•kumarsashank•1m ago•0 comments

Show HN: ROMbug Earth – a browser that shows where websites connect

https://rombugearth.com/
1•chainbuilder•1m ago•0 comments

Show HN: Onus – self-hostable vuln scanner combining 8 tools into one report

https://github.com/maverickaayush/ONUS
1•maverickaayush•2m ago•0 comments

Show HN: LMNO.lol – An entire blog in a single Markdown file

https://lmno.lol
1•xenodium•3m ago•0 comments

Inadvertently becoming a slop contributor to a Rust core library

https://ianm199.github.io/personalSite/blog/inadvertently-becoming-a-slop-contributor-to-rust-libc/
1•ianm218•6m ago•0 comments

Magnolias Are So Old That They're Pollinated by Beetles, Not Bees

https://mymodernmet.com/magnolia-ancient-flowers-beetles/
2•speckx•8m ago•0 comments

Dissecting Claude Science

https://feitong.phd/essays/dissecting-claude-science/
1•planeyang•9m ago•1 comments

Through the Prompt Window

https://pprunty.substack.com/p/6-through-the-prompt-window
1•pprunty97•9m ago•0 comments

The Java Ring

https://yamad.jp/en/writings/java/ring/about.htm
2•thinkingemote•10m ago•0 comments

I built a privacy-first,US financial calculator(no signups, no server uploads)

https://calcsuitehub.com/
1•faldix•10m ago•0 comments

Kata Containers 4.0.0 Brings You a New Rust Runtime

https://katacontainers.io/blog/kata-containers-4-0-0-release-overview/
2•_ananos_•10m ago•0 comments

Building an AI-orchestrated publishing workflow for a long-form writing project

1•tmuhlestein•10m ago•0 comments

How Antithesis Turned exe into a Sandbox for Agentic Software Tests

https://blog.exe.dev/how-antithesis-turned-exe-into-a-sandbox-for-agentic-software-tests
1•ronfriedhaber•12m ago•0 comments

AI's cheatin' heart will make you weep

https://www.theregister.com/ai-and-ml/2026/07/21/ais-cheatin-heart-will-make-you-weep/5275784
2•Bender•12m ago•0 comments

Elon Musk says Grok will make 'historically accurate' Odyssey film by year-end

https://www.cnn.com/2026/07/22/tech/musk-grok-odyssey-adaptation-scli-intl
3•shrike•12m ago•0 comments

The Internet Is Starting to Card Everyone. Startups Are Making Millions from It

https://www.inc.com/georgia-fearn/the-internet-is-starting-to-card-everyone-these-startups-are-ma...
1•speckx•14m ago•0 comments

Hwatu: A daemon-based WebKit browser with 13ms window spawns

https://github.com/hongnoul/hwatu
1•hongnoul_•15m ago•0 comments

Show HN: Vifu – A runtime and visual workflow for building AI-native games

https://github.com/vifudotdev/vifu
1•DR_MING•16m ago•1 comments

TTFT benchmark: LLM Gateway vs. OpenRouter (Claude-haiku-4.5, 150 runs)

https://gist.github.com/smakosh/0ca360230fb267d375b91dbd50548b67
1•steebchen•16m ago•0 comments

Thoughts on Integers (2023)

https://blog.xoria.org/integers/
1•mpweiher•17m ago•0 comments

Slash Pages

https://slashpages.net/
2•birdculture•19m ago•0 comments

Show HN: Interact with inactive macOS windows without selecting the window first

https://github.com/dainank/apple-click-through
1•dainank•19m ago•0 comments

Show HN: LiteRadar – Fast, ad-free, 60fps weather radar

https://literadar.com
2•peetle•19m ago•1 comments

Productionizing research is a boundary problem

https://rpc3.dev/posts/productionizing-research-is-a-boundary-problem/
1•rpc3•21m ago•0 comments

How to build interactive experiences with canvases

https://github.blog/ai-and-ml/github-copilot/how-to-build-interactive-experiences-with-canvases/
1•Brajeshwar•21m ago•0 comments

Show HN: CoreBase – Governed AI Agents for your product, on your customers' data

https://corebasehq.com
1•y11t0•22m ago•1 comments

Natural raises $30M to reinvent payments for AI agents – and take on Stripe

https://thenextweb.com/news/natural-series-a-agentic-payments-ai-agents
2•krrishd•22m ago•0 comments

Google Commits $40M to the Genesis Mission – Google Cloud Blog

https://cloud.google.com/blog/topics/public-sector/accelerating-frontiers-of-scientific-discovery...
1•xnx•22m ago•0 comments

Google ordered to open Android and Search to rivals in Europe

https://www.theverge.com/policy/966438/eu-google-android-ai-interoperability-search-data-dma
1•smugma•26m ago•1 comments

When Listening to Music Was a Team Sport

https://www.nytimes.com/2026/07/21/arts/design/art-of-noise-cooper-hewitt-smithsonian-design.html
2•reaperducer•26m ago•0 comments