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/

Google DeepMind dismantles Nobel-winning AlphaFold team in strategy shift

https://www.ft.com/content/61b2953d-ee0d-45de-af6e-a9c1cf524b33
1•marcopolis•2m ago•0 comments

Cracking Windows Open: Porting RADV to Win32

https://www.collabora.com/news-and-blog/news-and-events/cracking-windows-open-porting-radv-to-win...
1•zdw•5m ago•0 comments

User Interfaces of the Demo Scene

https://www.datagubbe.se/scenegui/
1•zdw•5m ago•0 comments

Kospi Plunges After Nvidia CEO's Visits Spark 'Huang Curse' Fears

https://www.chosun.com/english/market-money-en/2026/07/29/6FEUZWQT5BG3HMJ3G2RZPHROGM/
1•mapping365•6m ago•0 comments

Encode and Decode any digital text for free

https://www.qrexpress.org/ro/
1•levario•7m ago•1 comments

Self-Hosting has 34× First-Year ROI at 90% capacity

https://www.reddit.com/r/LocalLLM/comments/1v8dv47/what_am_i_missing_selfhosting_kimi_k3_has_34/
1•linxy97•17m ago•1 comments

Protecting My Server and Knowing What It Does with Tailscale and Beszel

1•SyedFazil•18m ago•0 comments

Show HN: Robust Blockchain Infrastructure

https://onfinality.io/en
1•cyrbuzz•18m ago•0 comments

A CLI that shows which sub-agent burned your tokens in one run

https://github.com/rrkher059/token-trace-viewer
1•rrkher059•19m ago•2 comments

Certified in Theory, Broken in Practice: Assumption Gaps in Cryptographic Model

https://arxiv.org/abs/2607.21839
2•sbulaev•29m ago•0 comments

The Future Is Here (2009)

https://retout.co.uk/2009/10/25/the_future_is_here/
2•jruohonen•30m ago•0 comments

MonkeysCode and Capuchin AI: The Agentic IDE That Gives You Total Control

https://monkeyscode.com/blog/introducing-monkeyscode-capuchin-the-agentic-ide-that-gives-you-tota...
1•monkeyscloud•32m ago•0 comments

What Has Happened to Taste?

https://www.esquire.com/style/a71276009/what-has-happened-to-taste/
2•acmnrs•38m ago•0 comments

Kestrel – passive AD audit tool on native C

https://github.com/ssteelfactor-oss/Kestrel
1•steelfactor•42m ago•0 comments

Transformer Transformer: A Unified Model for Motion-Conditioned Robot Co-Design

https://transformer-transformer.github.io/
5•ilreb•43m ago•0 comments

Exit Codes

https://bettercli.org/design/exit-codes/
2•ankitg12•44m ago•0 comments

One transcript, four different GPA views

https://mongol-jimmi.github.io/medcompass-audit/guides/gpa-formulas.html
1•medcompassaudit•44m ago•0 comments

An autonomous fleet to turn your Intent into production systems

https://intentlab.ai/blog/turn-your-intent-into-production-systems
1•jinqueeny•46m ago•0 comments

Show HN: Poople Today – Word Ladders Ending in Poop

https://poopletoday.com/
1•aitooltrek-com•47m ago•0 comments

Show HN: I run 30B 22tok/s, 109tok/s not novel,6GB/16GB RAM overcoming llama.cpp

https://github.com/FedericoTs/quantprobe
1•federicoTXTS•48m ago•0 comments

Scrum's "Product Owner" Problem

https://rethinkingsoftware.substack.com/p/scrums-product-owner-problem
2•aard•48m ago•0 comments

When the Walls Came Down

http://scripting.com/2026/07/28/115945.html
3•Tomte•52m ago•0 comments

If U.S. labs slow down AGI development, this could be 2028

1•aliahad•55m ago•0 comments

Good CLI Design Is Mostly Silence

https://yarlson.dev/blog/good-cli-design-is-mostly-silence/
2•ankitg12•56m ago•0 comments

A dystopian world where LLMs can't code but can generate software binaries

https://twitter.com/random_walker/status/2082163285588107752
1•kristianpaul•59m ago•0 comments

The NEET Paper Leak

https://medium.com/freedomofthought/the-neet-paper-leak-why-accountability-matters-more-than-resi...
2•raynchad•1h ago•1 comments

Jason Arday

https://unherd.com/2026/07/jason-arday-cambridges-dei-darling/
2•Tomte•1h ago•0 comments

The Lisa: Apple's Most Influential Failure (2023)

https://computerhistory.org/blog/the-lisa-apples-most-influential-failure/
3•droidjj•1h ago•2 comments

FCC bans foreign-produced solar inverters, grid lockout begins today

https://pv-magazine-usa.com/2026/07/28/fcc-bans-foreign-produced-solar-inverters-grid-lockout-beg...
2•xbmcuser•1h ago•0 comments

Indian EV makers beat Tesla, BYD in global efficiency race

https://restofworld.org/2026/indian-evs-beat-tesla-byd-icct-efficiency-ranking/
2•donohoe•1h ago•0 comments