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/

Are AI agents our industry's industrial robots?

https://www.marcusoft.net/2026/08/ai-robots.html
1•nialse•4m ago•0 comments

Royal Navy drone cameras sent signals to China

https://www.independent.co.uk/news/uk/home-news/royal-navy-drone-cameras-china-mod-b3030094.html
1•wolfi1•5m ago•0 comments

Show HN: Yaply – translate and learn English from your X feed

https://yaply.app
1•matthiasMRC•5m ago•0 comments

Towers of Silence

https://99percentinvisible.org/episode/579-towers-of-silence/
1•NoRagrets•8m ago•0 comments

Diffusion LLMs as Targets and Adversaries: Mechanistic Safety Exploits

https://arxiv.org/abs/2608.07430
1•sbulaev•10m ago•0 comments

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
1•h1watt•13m ago•0 comments

The making of an advert before CGI – Chevy Impala 1966 [video]

https://www.youtube.com/shorts/VLBRvCaWIiY
1•lifeisstillgood•14m ago•0 comments

How to be an AI safety research engineer

https://www.lesswrong.com/posts/Wty5mcDBEmypap8o2/how-to-be-an-ai-safety-research-engineer
1•joozio•15m ago•0 comments

Is Europe safer than America?

https://www.economist.com/graphic-detail/2026/08/09/is-europe-safer-than-america
1•vinni2•20m ago•1 comments

Kimi K3 Sandbox Escape Exposes Weak Links in Agent Testing

https://ai-updates.net/kimi-k3-sandbox-escape-agent-testing/
1•ashurandi•24m ago•1 comments

MIT researchers tackle the economic realities of fusion power

https://news.mit.edu/2026/mit-researchers-tackle-economic-realities-fusion-power-0810
2•mdp2021•26m ago•0 comments

Israeli settlers are sneaking into Syria to claim land for a Jewish outpost

https://apnews.com/article/israel-syria-netanyahu-jewish-settlers-bashan-461c4c4f686d5cf74f0617a7...
4•hebelehubele•26m ago•1 comments

The Renaissance Was Edited Before Anyone Asked for It Back

https://thetraces.substack.com/p/the-renaissance-was-edited-before
1•feldrim•27m ago•0 comments

Passkey Town

https://fenko.nz/passkey-town/
2•mosajjal•30m ago•2 comments

Scaling Logical Reasoning on Modern HPC Hardware

https://surface.syr.edu/etd/2351/
1•matt_d•30m ago•0 comments

AI assistant hacks gym website in first known Australian autonomous cyber attack

https://www.rnz.co.nz/news/world/952663/ai-assistant-hacks-gym-website-in-first-known-australian-...
3•billybuckwheat•31m ago•0 comments

OpenHaystack: Reverse-engineered Apple's Find My network

https://github.com/seemoo-lab/openhaystack
2•BrandiATMuhkuh•31m ago•0 comments

Dark mode toggles: two states are enough

https://lea.verou.me/blog/2026/dark-mode-toggles/
3•JeremyTheo•39m ago•1 comments

Why does Apple have an office in a small town close to Hamburg?

https://alsterrunde.com/why-does-apple-have-an-office-in-a-small-town-close-to-hamburg/
3•mertbio•41m ago•0 comments

Show HN: NexusMem – Local context memory engine for AI coding agents

https://github.com/yaminbakoh4-dot/NexusMem
2•yamin_bakoh•43m ago•0 comments

AI companies destroy physical books – let's scan rare books before it's too late

https://annas-archive.gl/blog/physical-destruction.html
5•rzk•44m ago•0 comments

Show HN: Lector, a FOSS self-hosted language reader (with a cloud option)

https://lector.dev/
2•3stacks•45m ago•0 comments

AI Is Rewiring South Korea's Careers, Dating and Culture

https://www.bloomberg.com/news/features/2026-08-06/ai-sk-hynix-samsung-rewire-south-korea-s-caree...
2•theanonymousone•48m ago•0 comments

Endlessdoors Is Phoning Home. Pick Up

https://www.vulncheck.com/blog/zbt-endlessdoors
2•D4Ha•51m ago•0 comments

Numberblocks: It All Began

https://www.blocksuniverse.tv/blocksnews/numberblocks-how-it-all-began
2•kamphey•53m ago•0 comments

Exhibit 8A and 8B from "The Good Old USA" Project (2024)

https://www.justice.gov/opa/media/1366201/dl
3•sans_souse•53m ago•0 comments

Naïve raises $28.5M to automate setting up and running a company

https://techcrunch.com/2026/08/06/naive-raises-28-5m-to-automate-the-grunt-work-of-setting-up-and...
3•ashurandi•1h ago•3 comments

Beyond Origin Validation: Four Classes of Routing Attack Nobody Is Validating

https://labs.ripe.net/author/antonio-prado/beyond-origin-validation-four-classes-of-routing-attac...
2•m_montazeri•1h ago•0 comments

Docker Sandboxes – Disposable, isolated sandboxes for AI agents

https://www.docker.com/products/docker-sandboxes/
68•etoxin•1h ago•36 comments

Decart Exploring Sale, Possibly SpaceX

https://www.calcalistech.com/ctechnews/article/hjhzrluuml
1•Taikhoom2010•1h ago•0 comments