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/

Supply and Demand Is Not What Most People Think

https://shonczinner.substack.com/p/supply-and-demand-is-not-what-most
1•paulpauper•3m ago•0 comments

Bitcoin cold-wallet attack spreads to 4,500 addresses as losses near $89M

https://www.coindesk.com/tech/2026/08/02/bitcoin-cold-wallet-attack-spreads-to-4-500-addresses-as...
2•rbanffy•4m ago•0 comments

Wham! 10 Days in China [video]

https://www.youtube.com/watch?v=P7oAaJqqv8w
1•sxzygz•5m ago•0 comments

What Else Do We Lose When People Give Up Booze?

https://www.nytimes.com/2026/08/01/style/what-else-do-we-lose-when-people-give-up-booze.html
1•bookofjoe•9m ago•1 comments

AI poster wins Ohio State Fair contest

https://www.ohiostatefair.com/p/get-involved/arts/poster-contest
1•AlexAplin•10m ago•0 comments

Negative social ties as risks for faster aging, inflammation, and multimorbidity

https://pmc.ncbi.nlm.nih.gov/articles/PMC12933095/
1•davidbarker•11m ago•0 comments

Mention of Synon, the real inventors of Rapid Application Development, in 1986 [pdf]

http://archive.computerhistory.org/resources/access/text/2017/06/102726714-05-05-acc.pdf
1•jambalaya8•11m ago•0 comments

Abundant empirical evidence of multilevel selection

https://www.frontiersin.org/journals/ecology-and-evolution/articles/10.3389/fevo.2026.1752597/full
1•marojejian•12m ago•0 comments

Unexpected events and prosocial behavior: the Batman effect

https://www.nature.com/articles/s44184-025-00171-5
1•davidbarker•14m ago•0 comments

A Baby Bust Is Not yet a Growth Boom

https://www.labormarketmatters.com/p/a-baby-bust-is-not-yet-a-growth-boom
1•paulpauper•16m ago•0 comments

Teaching an AI to know itself: Building a local LLM agent in D

https://blog.dlang.org/2026/06/07/teaching-an-ai-to-know-itself-building-a-local-llm-agent-in-d/
1•teleforce•18m ago•0 comments

Show HN: STB-like zero-dependency O(N) FMM gravity solver

https://github.com/nihiL7331/polesitter
1•nihiL7331•18m ago•1 comments

Trump Crypto Tie-Up Fueled Family Windfall, Investor Losses

https://www.bloomberg.com/news/articles/2026-07-30/how-a-trump-crypto-deal-enriched-the-family-wh...
3•paulpauper•18m ago•0 comments

The Computational Theory of Mind (2015)

https://plato.stanford.edu/entries/computational-mind/
1•cyanregiment•19m ago•1 comments

Reviewing the Arch User Repository with AI

https://cretezy.com/2026/aur-ai-security/
1•CraftThatBlock•19m ago•1 comments

Gauge – see where your Claude Code subscription goes

https://github.com/joey-io/gauge
1•joey-io•20m ago•0 comments

30% of certificate credentials reported on LinkedIn are now AI-related

https://www.morningstar.com/news/marketwatch/20260731180/job-seekers-can-now-spend-thousands-on-a...
1•thoughtpeddler•20m ago•0 comments

Radiation in Paduach

https://magazine.atavist.com/2026/toxic-lies-radiation-paducah
1•ezzaf•28m ago•0 comments

Tips for Landing a YC Internship?

2•cnnadozi•32m ago•0 comments

NASA Lessons Learned System

https://llis.nasa.gov/
1•ahsillyme•35m ago•1 comments

Arm's Cortex A55

https://chipsandcheese.com/p/arms-cortex-a55
2•pella•37m ago•0 comments

Californians' data deletion requests, DROP, become enforceable Aug. 1

https://www.nbcsandiego.com/nbc-7-responds-2/californians-data-deletion-requests-drop-become-enfo...
15•MilnerRoute•38m ago•0 comments

OpenAI’s amazing — but vastly oversold — new model Astra

https://garymarcus.substack.com/p/openais-amazing-but-vastly-oversold
6•champagnepapi•41m ago•0 comments

Show HN: Cl33-opLM, a 236M language model with a reversible operator bottleneck

https://cl33.t3atlas.dev/
1•MirrorEthic•43m ago•0 comments

QM: We read Y Combinator's company-wide agent runtime

https://runtimewire.com/article/inside-qm-we-read-y-combinator-s-company-wide-agent-runtime
2•ryanmerket•45m ago•0 comments

Infrared goggles that show colours

https://arstechnica.com/science/2026/07/see-the-heat-an-infrared-imaging-system-that-outputs-in-c...
2•Gaishan•47m ago•0 comments

Coldcard wallet RNG flaw likely linked to $88M Bitcoin theft

https://www.bleepingcomputer.com/news/security/coldcard-wallet-rng-flaw-likely-linked-to-88-milli...
1•sbulaev•47m ago•0 comments

Show HN: Mu – Tools for Agents

https://github.com/micro/mu
1•asim•48m ago•0 comments

Ask HN: What are you working on? (August 2026)

4•sarreph•49m ago•6 comments

Made an anime guessing game to play with friends

https://otakuguessr.com/
1•sachisroom•50m ago•0 comments