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/

A Leaked Memo Ties Cyberattacks on Minnesota Water Utilities to Iran

https://www.wired.com/story/a-leaked-memo-ties-cyberattacks-on-minnesota-water-utilities-to-iran/
1•justworks•21s ago•0 comments

Quantum advantage through trusted quantum computation – IBM Quantum

https://www.ibm.com/quantum/blog/quantum-advantage
1•unprovable•1m ago•1 comments

Reinventing rewards for the AI multiverse [pdf]

https://www.mercer.com/assets/us/en_us/shared-assets/local/attachments/pdf-reinventing-rewards-fo...
1•zuhayeer•3m ago•0 comments

Ellison Empire Beseiged on All Fronts

https://www.nakedcapitalism.com/2026/07/oracle-paramount-wbd-ellison-empire-beseiged-bonds-stocks...
1•JumpCrisscross•3m ago•0 comments

Investors love AI, as long as you're a cloud host

https://techcrunch.com/2026/07/30/investors-love-ai-as-long-as-youre-a-cloud-host/
1•toomuchtodo•4m ago•0 comments

If technology got better, why did everything get worse?

https://www.sammystraus.com/#if-technology-got-better-why-did-everything-get-worse
1•sammy0910•5m ago•0 comments

Nix has a source-bootstrapped OpenJDK

https://fzakaria.com/2026/07/30/nix-finally-has-a-source-bootstrapped-openjdk
1•ingve•5m ago•0 comments

How to plant a nuclear plant in Iran

https://www.digitaldigging.org/p/how-to-plant-a-nuclear-plant-in-iranh7&fnop=story-toofast
1•rhcom2•6m ago•0 comments

ChatGPT Optimizes Its Agent Loop: Harness, API, and Inference

https://blog.bytebytego.com/p/how-chatgpt-optimizes-its-agent-loop
2•big_toast•6m ago•0 comments

Context Is the New Process

https://www.insideainative.com/p/context-is-the-new-process
1•mmayernick•7m ago•0 comments

Show HN: Sticker Base

https://chuanqisun.github.io/stickerbase/
1•osmoscraft•7m ago•1 comments

Around the wwworld

https://bellkiosk.website/around-the-wwworld/
1•cookingoils•8m ago•0 comments

Wrapper Company vs. Recursion Company

1•sgadhavi•11m ago•0 comments

Investigating three real-world incidents in our cybersecurity evaluations

https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals
4•surprisetalk•11m ago•0 comments

Holocloth

https://holocloth.vercel.app
1•ingve•13m ago•0 comments

Ask HN: How are you leveraging AI/LLMs as software dev TEAM

1•locusofself•17m ago•1 comments

The Model Factory

https://www.latent.space/p/poolside
1•gmays•22m ago•0 comments

SSH Monitor for Linux: A script that notifies you for SSH activity

https://codeberg.org/r2innovation/ssh_notify
1•mou7664•22m ago•0 comments

Show HN: Anti-Slop UI – A deterministic state-machine to stop AI hallucinations

https://local-over.github.io/Anti-Slop-UI/
1•hassan-elkady•23m ago•0 comments

Show HN: Pomi – standalone voice agent running on the Rabbit R1

https://github.com/sidmohan0/pomi
1•smohan88•23m ago•0 comments

What's Working for Adoption and Distribution of AI/SaaS Products in 2026?

1•Expedition•26m ago•0 comments

Working from home? That will be extra. Renters rage over new fee

https://www.usatoday.com/story/money/2026/07/30/remote-work-rental-fee-sparks-outrage/91101669007/
2•healsdata•27m ago•0 comments

Abundant Intelligence, Scarce Autonomy

https://twitter.com/elitepax/status/2082948701958422783
1•majestic5762•28m ago•1 comments

Can you survive the Kobayashi Maru?

https://moai.studio/blog/posts/kobayashi-maru.html
1•ionwake•30m ago•2 comments

Pusu AdBlocker – 35K DNR rules, Manifest V3, zero tracking, anti-popup nuclear

https://github.com/pusucip25/pusu-adblocker
1•pucucip•31m ago•1 comments

Where Does the Foundation Come From? (Training New SWEs)

https://queue.acm.org/detail.cfm?id=3831359
1•molsongolden•31m ago•0 comments

Ask HN: What do you think of this prompt as a benchmark for LLMs?

1•plombe•34m ago•0 comments

Xenia, Greek hospitality in case you're a god in disguise

https://en.wikipedia.org/wiki/Xenia_(Greek)
2•shay_ker•35m ago•0 comments

Montana's plan to become an experimental medical hub just pushed forward

https://www.technologyreview.com/2026/07/30/1140942/montana-experimental-medical-hub-pushed-forwa...
1•bilsbie•36m ago•0 comments

Power 2026 – Electricity Pricing in the Age of AI

https://power2026.ai/
1•nsomani•36m ago•0 comments