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/

Sakana Fugu: A full multi-agent orchestration system

https://twitter.com/SakanaAILabs/status/2068861630327443966
1•thedebuglife•21s ago•0 comments

Chirps – AI widget that knows your site, takes actions, and sees what users see

https://chirps.cc
1•Monzed•24s ago•0 comments

Bain tests software takeover targets by vibecoding AI replicas

https://www.ft.com/content/e5bac4d1-b1f8-43a4-bd54-b182d5357af0
1•macleginn•2m ago•1 comments

Microsoft's Satya Nadella: We Can't Let AI Giants Eat the Economy

https://www.wsj.com/tech/ai/microsofts-satya-nadella-we-cant-let-ai-giants-eat-the-economy-b9d33b9f
2•berkeleyjunk•3m ago•0 comments

Dostoyevsky Isn't Difficult

https://www.autodidacts.io/dostoyevsky-isnt-difficult/
1•surprisetalk•3m ago•0 comments

Show HN: Export YOLO/RF-DETR Models to ONNX, TensorRT, CoreML – 100% Local

https://github.com/amanharshx/vision-export-studio/
1•amanharshx•3m ago•0 comments

Unreal Engine 5.8 Paves Way for Better Optimization in UE6

https://www.techpowerup.com/350071/unreal-engine-5-8-paves-way-for-better-optimization-in-ue6
1•ksec•4m ago•0 comments

Biggest obstacles to AI data centers in space

https://bigthink.com/starts-with-a-bang/5-biggest-obstacles-ai-data-centers-space/
1•speckx•4m ago•0 comments

Cloudflare is quietly building the agent cloud

https://remkusdevries.com/cloudflare-is-quietly-building-the-agent-cloud/
2•taubek•5m ago•0 comments

Show HN: A free book on the psychology behind product design

https://productdesignpsychology.com
2•wdeb•5m ago•0 comments

Uber-backed Lime seeks up to $1.66B valuation in US IPO

https://www.reuters.com/business/uber-backed-lime-aims-raise-up-1809-million-us-ipo-2026-06-22/
3•herpderperator•5m ago•0 comments

FreeBSD 15.1 Released with Updated WiFi Drivers, Better C23 Support

https://www.phoronix.com/news/FreeBSD-15.1-Released
2•ksec•5m ago•0 comments

Grand Unified Theory:Cosmic Philosophical Conjecture(Explanation:Time Dimension)

https://medium.com/@f9121212/grand-unified-theory-cosmic-philosophical-conjecture-explanation-uni...
2•ortrich•6m ago•1 comments

Tw-fade: pure CSS scroll-driven edge masking

https://pete.design/tw-fade
2•petekp•6m ago•1 comments

The FBI's 22,000 square-foot technical training environment in Huntsville

https://www.fbi.gov/news/stories/inside-the-fbis-kinetic-cyber-range
2•sjreese•6m ago•1 comments

Testing Isn't Everything (2019)

https://www.arp242.net/testing.html
2•dryarzeg•8m ago•1 comments

What's New in Oracle Solaris 11.4 SRU 93

https://blogs.oracle.com/solaris/whats-new-in-oracle-solaris-11-4-sru-93
2•ksec•8m ago•0 comments

Study finds no clear advantage for trans women over cisgender women in sports

https://bjsm.bmj.com/content/60/3/198
7•startupfreak•10m ago•1 comments

Good Riddance, Tim

https://medium.com/@Themetris/good-riddance-tim-e4b60ea55dd5
2•ra0x3•10m ago•0 comments

Court orders Ohio restrictions on kids' use of social media restored

https://apnews.com/article/social-media-parental-consent-ohio-eef2f173956e37183a39f13790bca96b
4•1vuio0pswjnm7•14m ago•0 comments

OpenPlan – Waze for AI Agents

https://openplan.cc
2•vncsleal•14m ago•0 comments

Show HN: PMB – local-first memory for AI coding agents over MCP

https://github.com/oleksiijko/pmb/blob/main/README.md
4•oleksiibond•15m ago•2 comments

Greater Switzerland [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2026/06/iq-4.2-summer-2026-nientiedt-greater-swi...
2•brandonlc•15m ago•0 comments

Tailwind CSS adds more complexity than it removes

https://tinamrak.com/blog/tailwind-css-adds-more-complexity-than-it-removes
3•f13th•16m ago•2 comments

Miguel de Icaza pitches opt-in crash telemetry for Godot Engine [video]

https://www.youtube.com/watch?v=8zqjiRuhQLE
1•roflcopter69•17m ago•0 comments

Real-Time Feedback: My Closing Move in Every Interview

https://mgrebler.substack.com/p/real-time-feedback-my-closing-move
2•mooreds•18m ago•0 comments

codex-fixes: Community-maintained fixes for OpenAI Codex bugs

https://codexfixes.com/
2•cl3misch•18m ago•0 comments

Companies are scrambling to curtail soaring AI costs

https://www.economist.com/business/2026/06/14/companies-are-scrambling-to-curtail-soaring-ai-costs
4•1vuio0pswjnm7•18m ago•1 comments

The last Romans are still around

https://signoregalilei.com/2026/06/20/the-last-romans-are-still-around/
3•surprisetalk•18m ago•0 comments

Xfwl4's First Preview Release

https://www.spurint.org/journal/2026/06/xfwl4s-first-preview-release
3•Tomte•19m ago•0 comments