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/

Memory-level parallelism: AMD is the king

https://twitter.com/lemire/status/2081035484633985112
1•tosh•6m ago•0 comments

The things that matter take a minute

1•ishener•7m ago•0 comments

Carbon: Graduating from the experiment (Google C++ evolution language) [video]

https://www.youtube.com/watch?v=WJl4ftb5Fxg
1•wild_pointer•9m ago•0 comments

Launched ORBIT AI Sandbox

https://orbit.schmitech.ca/
1•schmitech•9m ago•0 comments

Samsung Electronics, SK Group seal $950B in deals with AI firms

https://www.reuters.com/business/media-telecom/south-korea-president-lee-looking-open-new-era-ai-...
2•alephnerd•9m ago•0 comments

IMAX vs. IMAX 70mm: The difference between these two cinema formats

https://www.engadget.com/2220571/differences-between-imax-70mm/
2•ksec•10m ago•0 comments

The Interstellar Laser Beacons Hypothesis and the Cosmic Lighthouses Project

https://arxiv.org/abs/2607.12106
1•tcp_handshaker•10m ago•0 comments

Visa Vulnerability Agentic Harness – Agentic SAST Pipeline

https://github.com/visa/visa-vulnerability-agentic-harness
1•binyu•15m ago•0 comments

Google signs Open Weights letter

https://twitter.com/sundarpichai/status/2081026488158040181
3•tosh•17m ago•0 comments

A Space Mission to Earth's Nearest Black Hole: Reality or Science Fiction?

https://arxiv.org/abs/2607.10982
1•tcp_handshaker•17m ago•0 comments

The Many Mysteries of the European Eel

https://lithub.com/on-the-many-mysteries-of-the-european-eel/
1•geneticdrifts•18m ago•0 comments

The Cost of Seamlessness

1•taotuner•19m ago•0 comments

New York's small business owners rejoice as Mamdani cuts red tape

https://www.theguardian.com/us-news/2026/jul/25/zohran-mamdani-small-business-policies
4•ceejayoz•21m ago•0 comments

Will it be possible to do LLM Pool Training?

1•slicktux•21m ago•1 comments

Prompting

https://learn.chatgpt.com/docs/prompting
1•tosh•22m ago•0 comments

The process it the point: on workslop and asymmetric workfare

https://seekingtrust.substack.com/p/the-process-is-the-point-on-asymmetric
2•FinnLobsien•23m ago•0 comments

ClerpAI – AI-verified matching between indie devs and real streamers

https://clerpai.com
1•yoopla_dev•23m ago•0 comments

CERN: Genesis Mission will develop and deploy self-improving AI models [pdf]

https://indico.cern.ch/event/1662511/contributions/6989580/attachments/3241179/5781542/Genesis%20...
2•donutloop•25m ago•1 comments

Why there is confusion around Automation and Agentic AI

https://medium.com/data-science-collective/why-there-is-confusion-around-automation-and-agentic-a...
1•marcofloriano•26m ago•0 comments

Apple's Robo-Repo

https://pluralistic.net/2026/07/25/cruel-cruelty-oh-cruelty/
2•hn_acker•31m ago•0 comments

Engineering management after the cost of code collapsed

https://karimjedda.com/engineering-management-after-cost-of-code-collapse/
2•kiyanwang•32m ago•0 comments

Fields and Abacus Medals 2026

https://www.quantamagazine.org/series/fields-and-abacus-medals-2026/
1•anujbans•34m ago•0 comments

Show HN: A CLI that spends a whole stage arguing your startup idea is wrong

https://github.com/jintukumardas/opportunity-engine
1•jintukumardas•35m ago•0 comments

Boustrophedon

https://en.wikipedia.org/wiki/Boustrophedon
1•gregsadetsky•37m ago•0 comments

Steam Workshop Map for Meccha Chameleon Used to Deliver Malware

https://medium.com/@FeintBE/workshop-map-for-meccha-chameleon-is-a-malware-dropper-full-breakdown...
2•tester457•38m ago•1 comments

Are dolphins the only animals that call each other by name?

https://www.science.org/content/article/are-dolphins-only-animals-call-each-other-name
1•Brajeshwar•38m ago•0 comments

teachers decry plan for humanoid robot in New York high school

https://www.theguardian.com/us-news/2026/jul/25/new-york-humanoid-robot-teachers-school
3•galaktor•40m ago•2 comments

Show HN: Added MCP and conditional styling into my habit/metrics tracking app

https://habitpocket.io/
1•bohdanstefaniuk•42m ago•0 comments

Opus 5 ARC-AGI-3 likely benchmaxxed

https://xcancel.com/quietnning/status/2080786711861407883
3•iamskeole•42m ago•1 comments

SkyPocket – Live flight stats and stat-stamped photos/videos

https://skypocket.cloud/
1•jmkni•42m ago•0 comments