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/

Fujitsu's Arm-Based Monaka Data Center CPU at Hot Chips 2026 – ServeTheHome

https://www.servethehome.com/fujitsus-arm-based-monaka-data-center-cpu-at-hot-chips-2026/
1•rbanffy•2m ago•0 comments

Amazon hikes hardware prices by 60 percent, blaming memory shortage

https://techcrunch.com/2026/08/24/amazon-hikes-hardware-prices-by-60-percent-blaming-memory-short...
1•speckx•2m ago•0 comments

Kudu – Easily Manage VMs on Linux

https://github.com/pythops/kudu
1•pythops•3m ago•0 comments

Show HN: Radar 50 – Real-time signal engine for 50 crypto markets, with accuracy

https://www.marketradar50.com
1•david2456•4m ago•0 comments

Show HN: Live dashboard of Great Britain's electricity grid

https://trydan.uk/
1•dannyducko•5m ago•0 comments

The Cloudflare Blog – Brought to You by EmDash

https://blog.cloudflare.com/cloudflare-blog-uses-emdash/
1•e2e4•5m ago•0 comments

Hot Chips 2026: Intel's Wildcat Lake – By Chester Lam

https://chipsandcheese.com/p/hot-chips-2026-intels-wildcat-lake
1•rbanffy•5m ago•0 comments

Launch: App for reading articles and finding new reads

https://www.topicsapp.net
1•starlighttt•5m ago•0 comments

Cognitive Surrender with AI

https://icepanel.io/blog/2026-08-17-cognitive-surrender-with-ai
1•herbertl•8m ago•0 comments

RISC-V is now officially supported by CPython

https://blog.python.org/2026/08/riscv-now-officially-supported/
2•lumpa•9m ago•0 comments

Intel Diamond Rapids the 2027 Intel Xeon at Hot Chips 2026 – ServeTheHome

https://www.servethehome.com/intel-diamond-rapids-the-2027-intel-xeon-at-hot-chips-2026/
1•rbanffy•10m ago•0 comments

The structure of selmer groups [pdf]

https://sites.math.washington.edu/~greenber/Sel.pdf
1•marysminefnuf•10m ago•0 comments

Carnegie Mellon University Coke Machine, the First "IoT" Device

https://www.cs.cmu.edu/~coke/coke.history.txt
1•speckx•11m ago•0 comments

The Control of Nature: The End of the European Summer

https://www.newyorker.com/magazine/2026/08/24/the-end-of-the-european-summer
1•mitchbob•12m ago•1 comments

The industry is in a productivity panic

https://jamesjboyer.substack.com/p/beautiful-irrelevant-things
3•aesthetics1•14m ago•1 comments

A plane war game build by DeepSeek-v4-flash-vision-exp with only $0.5

https://plane-war-9t2.pages.dev/
2•alllen•16m ago•1 comments

Show HN: Noswoosh – instant macOS Space switching, no animation

https://github.com/mmathys/noswoosh
1•k5hp•16m ago•0 comments

Show HN: WorkBase – local-first project manager where a project is a tree

https://github.com/vocso-com/WorkBase
1•vocso•21m ago•0 comments

Nine Indicted by Taiwan over Illegal Export of Nvidia B300 GPUs to China

https://www.tomshardware.com/tech-industry/artificial-intelligence/nine-indicted-by-taiwan-over-i...
2•geoffbp•22m ago•0 comments

Jonathan Blow – Preventing the Collapse of Civilization (2019) [video]

https://www.youtube.com/watch?v=ZSRHeXYDLko
1•andai•22m ago•0 comments

Show HN: Maya Calendar

https://mcal.qt.ax/
1•quantum5•23m ago•0 comments

Show HN: AI for people that still browse the web

https://thisisrobin.ai/
1•nikolas1814•24m ago•0 comments

The Great Vowel Shift

https://en.wikipedia.org/wiki/Great_Vowel_Shift
1•samcgraw•24m ago•0 comments

Why the Largest Megaproject Collapsed [video]

https://www.youtube.com/watch?v=GbB3vFfiaVU
1•simonebrunozzi•27m ago•0 comments

The Teaser Period: Why the AI Boom Is Built to Break

https://www.groundbrkr.com/p/the-teaser-period-why-the-ai-boom
2•root-parent•32m ago•0 comments

Qwen 3.6 is now much easier to run locally on your Mac, thanks to JetBrains

https://www.neowin.net/news/qwen-36-is-now-much-easier-to-run-locally-on-your-mac-thanks-to-jetbr...
6•bundie•33m ago•4 comments

Gray Goo

https://en.wikipedia.org/wiki/Gray_goo
1•mkl95•33m ago•0 comments

The Government Report That Made Me Stop Trusting Our Statistical Agencies

https://econjared.substack.com/p/the-government-report-that-made-me
5•root-parent•34m ago•0 comments

Show HN: Nauma new features (financial planning)

1•alx_sukhanov•38m ago•0 comments

Greg Abbott says data centers:'basically dug their own grave'

https://www.businessinsider.com/greg-abbott-texas-data-centers-backlash-2026-8
7•root-parent•38m ago•0 comments