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/

Stack Overflow relaunched Developer Story (who certifies that a human wrote it?)

https://stackoverflow.blog/2026/09/10/re-introducing-developer-story/
1•rkovashikawa•48s ago•0 comments

Friday Facts #446 – An ARM and a Frame

https://factorio.com/blog/post/fff-446
1•robotnikman•1m ago•0 comments

The Pain Axis: LLMs Represent Self-Directed Harm and Act to Relieve It

https://arxiv.org/abs/2609.16247
1•1317•8m ago•0 comments

I Have Been a DelGuard

1•bh0k4l•11m ago•0 comments

The Mic Is On. So Is Live Auto-Tune.

https://www.nytimes.com/2026/09/11/arts/music/live-auto-tune-jojo-flo-singing.html
1•bookofjoe•13m ago•1 comments

Institutional Parasitism in Open Technology Communities

https://garden.s3.wasabisys.com/__garden/bacee012-5d7d-4f1a-bcf8-67864e663877
2•theyoungsir•13m ago•0 comments

UK could force phone companies to add 'anti-theft protections'

https://www.bbc.com/news/articles/ckqxvy98x578o
3•electrum•16m ago•0 comments

Using jev to improve product experiences is pretty crazy

https://www.elvex.com/blog/early-experimentation-using-jev-to-rethink-harness-ux
4•sak84•20m ago•3 comments

What I learned from using FreeBSD as a main OS for a summer

https://divanv.com/post/adventures-in-bsd/
2•divanvisagie•20m ago•0 comments

A Lack of Honesty Is the Ultimate Killer

https://phillipspobrien.substack.com/p/a-lack-of-honesty-is-the-ultimate
2•JumpCrisscross•22m ago•0 comments

Ask HN: What do you think of Noul, a new decision primitive

1•hbarka•23m ago•0 comments

Wealth Taxes Can Make Capital Markets More Efficient

https://www.promarket.org/2026/09/14/wealth-taxes-can-make-capital-markets-more-efficient/
4•paimapi•23m ago•0 comments

German Hospitals Prepare for War, Drones and Mass Casualties

https://www.bloomberg.com/news/features/2026-09-16/germany-s-hospitals-prepare-for-war-and-mass-c...
3•vrganj•24m ago•1 comments

Meta Muse Hits #1 in Apple App Store

https://www.businessinsider.com/meta-muse-personal-ai-agent-top-app-store-charts-2026-9
2•pizzathyme•25m ago•0 comments

You need more than just vanilla RAG

https://medium.com/@NikoZero11/your-rag-pipeline-doesnt-need-more-retrieval-it-needs-better-decis...
3•Savanjj•26m ago•0 comments

Claude Code now reads AGENTS.md if there is no Claude.md

https://code.claude.com/docs/en/changelog
49•datadrivenangel•26m ago•19 comments

Your 401(k) Is Propping Up the AI Bubble

https://www.promarket.org/2026/05/05/your-401k-is-propping-up-the-ai-bubble/
2•paimapi•26m ago•0 comments

PHP, on a Whim #2: Stop Calling Everything an Array

https://carthage.software/en/blog/article/PHP-on-a-Whim-2-Stop-Calling-Everything-an-Array
1•spacebuffer•26m ago•0 comments

Fat Bear Week 2026

https://explore.org/fat-bear-week
1•slater•29m ago•0 comments

Automattic names interim CFO after exec departures

https://techcrunch.com/2026/09/18/automattic-names-interim-cfo-after-exec-departures/
2•cdrnsf•30m ago•0 comments

What is a System One model and why we need it?

https://stackness.dev/blog/what-is-a-system-one-model-and-where-does-it-go-in-your-stack
1•gosen•31m ago•0 comments

Show HN: ReacherX – Open-source platform to find and reach the right people

https://github.com/VecterAI/reacher-x
1•noobships•31m ago•0 comments

Sam Altman to brief UN Security Council next week

https://www.reuters.com/business/openais-sam-altman-to-brief-un-security-council-next-week-during...
2•vertigoruntime•31m ago•1 comments

Silex: Laser Enrichment Between Promise and Proliferation Risk

https://nuclearnetwork.csis.org/silex-laser-enrichment-between-promise-and-proliferation-risk/
2•looofooo0•35m ago•0 comments

Quantum computers will not be that different

https://arxiv.org/abs/2609.19639
1•bober132•36m ago•0 comments

Single player games require age verification if they use Steam under EU KIDS Act

https://www.rockpapershotgun.com/single-player-games-might-require-age-verification-if-they-use-s...
3•righthand•37m ago•1 comments

A solo founder runs a five-continent tender platform on AlloyDB and MCP

https://cloud.google.com/blog/products/databases/solo-founder-runs-a-global-tender-platform-on-al...
1•Davorjerkovic•38m ago•0 comments

Trump Announces Ban of CNN, Politico and MS Now from White House

https://time.com/article/2026/09/18/trump-bans-3-news-organizations-from-white-house/
11•throw0101c•40m ago•2 comments

Using Cyber Decoys to Strengthen Detection and Response

https://www.cisa.gov/resources-tools/resources/using-cyber-decoys-strengthen-detection-and-response
3•mr_hedrick•40m ago•1 comments

Show HN: 3D World Explorer and Location Guesser Game

https://explorer.tadget.net/
1•ramzis•40m ago•0 comments