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•11mo ago
Is this a problem that people actually have?
xeromal•11mo ago
Fun side project man!
primitivesuave•11mo 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•11mo 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•11mo 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/

OWASP PTK 9.9.0 / 9.9.1 is out

1•DenisPodgurskii•3m ago•0 comments

Show HN: RSME:A Reactive Stability Mutation Encryption

https://zenodo.org/records/19712564
1•RanggaS•5m ago•0 comments

A Comparative Security Analysis of Three Cloud-Based Password Managers

https://eprint.iacr.org/2026/058
1•agadius•6m ago•0 comments

Prompt Guidance – GPT-5.5

https://developers.openai.com/api/docs/guides/prompt-guidance
1•amunozo•6m ago•0 comments

RNet: Users pay for their own AI usage instead of apps covering token costs

1•rNetAi•7m ago•0 comments

A Gopher Meets a Crab

https://miren.dev/blog/gopher-meets-crab
1•radimm•15m ago•0 comments

Scott Aaronson on quantum: "Will you heed my warnings NOW?"

https://scottaaronson.blog/?p=9718
2•bwesterb•15m ago•0 comments

I took an algorithm to court in Sweden. The algorithm won

https://www.theguardian.com/commentisfree/2026/apr/30/i-took-an-algorithm-to-court-in-sweden-the-...
2•nickcotter•16m ago•0 comments

How does your team handle cloud cost optimisation?

https://www.kloudaudit.eu/
1•leumasj•16m ago•0 comments

The Czech Prime Minister just reacted to our video

https://www.youtube.com/watch?v=nzDuj42HJ1o
1•dataflow•16m ago•0 comments

Siddharth on X: "Software Is Eating the World (But This Time)"

https://twitter.com/siddharthvader_/status/2049161016156762441
1•kiyanwang•20m ago•0 comments

Ask HN: Recommended Gemini CLI extensions/skills for token consumption

1•elC0mpa•21m ago•0 comments

We never get to what matters

https://yewjin.substack.com/p/why-we-never-get-to-what-matters
1•kiyanwang•24m ago•0 comments

AI Coding Tools Ranked by Community Sentiment: 4 Weeks of Reddit/HN Data (2026)

https://murmure.cc/state-of-ai-devtools-2026
1•ianalyze•25m ago•0 comments

Why the US keeps getting richer while Britain stagnates

https://www.thetimes.com/business/economics/article/why-us-richer-than-uk-rlkshqvq9
2•petethomas•25m ago•0 comments

Hot Updates in Postgres

https://boringsql.com/posts/hot-updates/
1•radimm•26m ago•1 comments

FujiNet Go 800 – Atari800 Emulator for Android – FujiNet

https://fujinet.online/2026/04/23/fujinet-go-800-atari800-emulator-for-android/
1•rbanffy•28m ago•0 comments

Chinese firm revives the drive-in cinema with film-projecting headlights

https://www.thetimes.com/uk/technology-uk/article/chinese-firm-drive-in-cinema-film-projecting-he...
2•petethomas•29m ago•1 comments

Claude Code Opus 4.7: 16B cache reads across 8 sessions, forensic JSONL data

https://github.com/anthropics/claude-code/issues/38350
1•biniruprojects•34m ago•0 comments

Banana Pi Announces RISC-V Based BPI‑SM10 Developer Kit and K3 Pico‑ITX AI SBC

https://forum.banana-pi.org/t/banana-pi-major-release-based-on-spacemit-k3-launching-bpi-sm10-dev...
1•fork-bomber•38m ago•0 comments

Visualize Any Repository

https://gitdiagram.com
1•ahmedkhaleel•39m ago•1 comments

How AI Is Changing Programming Language Usage

https://cacm.acm.org/news/how-ai-is-changing-programming-language-usage/
2•adunk•40m ago•0 comments

Guess at lost Bitcoin, right in the browser

https://satoshiguesser.com
1•jumploops•40m ago•0 comments

One of the most common knee surgeries does not help and may be harmful

https://www.eurekalert.org/news-releases/1126327
2•u1hcw9nx•41m ago•0 comments

Show HN: I built a zero-tracking news hub to escape doom scrolling at (AGE 17y)

2•blazeeofsun•45m ago•0 comments

Meta shares slide as it hikes AI spending forecast, youth social media backlash

https://nypost.com/2026/04/29/business/meta-shares-slide-as-tech-giant-hikes-ai-spending-forecast...
1•1vuio0pswjnm7•47m ago•0 comments

Apple's self-designed AI server chip "Baltra" may be manufactured by TSMC

https://technode.com/2026/04/09/apples-self-designed-ai-server-chip-baltra-may-be-manufactured-by...
1•mgh2•48m ago•0 comments

Indie English Bookstore in Tokyo

https://featherheartbooks.com/
3•agnishom•49m ago•0 comments

Meta bumped 2026 capex forecast up to $145B for AI boom investors flinched

https://fortune.com/2026/04/29/meta-zuckerberg-145-billion-ai-spending-roi/
3•1vuio0pswjnm7•49m ago•2 comments

Claude Code is inspecting repos and can auto-switch to extra usage

https://twitter.com/theo/status/2049645973350363168/photo/1
3•mlitwiniuk•52m ago•1 comments