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/

Toot.community Is Shutting Down

https://social.jorijn.com/@jorijn/statuses/01KYN00AP3NCZXCFB96KQB8GN2
1•speckx•1m ago•0 comments

Earth Is Lumpy as Hell

https://nautil.us/earth-is-lumpy-as-hell-1283204
1•Brajeshwar•1m ago•0 comments

Feeling the Sting of Climate Change

https://archive.org/details/GMM-10481
1•hakkikonu•1m ago•1 comments

Yair Lapid backs 'Biblical' borders for Israel

https://www.middleeasteye.net/news/israel-yair-lapid-biblical-borders
1•hebelehubele•2m ago•0 comments

Karpowership – Floating Power Plants

https://en.wikipedia.org/wiki/Karpowership
1•thelastgallon•3m ago•0 comments

Donald Trump Silenced the Voice of America

https://www.newyorker.com/news/annals-of-communications/how-donald-trump-silenced-the-voice-of-am...
1•rbanffy•3m ago•0 comments

Agent Proxy: Secure Credential Brokering for Agents

https://infisical.com/blog/agent-proxy
1•FinnLobsien•3m ago•0 comments

Agents explained, what makes an LLM an agent?

https://raw.githubusercontent.com/langens-jonathan/blog/refs/heads/main/20260729_AgentsDefined_Pa...
1•flowofcontrol•4m ago•0 comments

A Primer on Circadian Rhythms (2017)

https://biolayne.com/articles/research/primer-circadian-rhythms/
1•geneticdrifts•6m ago•0 comments

Helping companies control which AI skills their teams can use

https://detent.cloud/
1•tommeddubai•6m ago•0 comments

Why is my Claude agent being so mean to its subagent?

https://xcancel.com/antibot/captcha
2•theanonymousone•7m ago•1 comments

Firstmate: Talk to one agent. Ship with a crew

https://github.com/kunchenguid/firstmate
2•metadat•7m ago•0 comments

Stacked PRs are now live on GitHub

https://github.blog/changelog/2026-07-30-stacked-pull-requests-are-now-in-public-preview/
5•tomzorz•8m ago•0 comments

Show HN: I was able to run tiberian sun on cncnet on an M4 MacBook Pro

https://github.com/piyiotisk/cncnet-ts-client-package/blob/master/docs/running-tiberian-sun-on-ap...
1•piyiotisk•9m ago•0 comments

MarkText: A simple and elegant open-source Markdown editor

https://marktext.me
1•nkjoep•10m ago•0 comments

Debian CVE Fixes over Time

https://sigwait.org/~alex/blog/2026/07/30/h1rmR5.html
3•speckx•10m ago•0 comments

Why NPM Dependency Trees Are So Big

https://nesbitt.io/2026/07/28/why-npm-dependency-trees-are-so-big.html
1•type0•10m ago•0 comments

Texas Heat vs. Humanoid – what fails first joints / on-board compute?

https://thehumanoidshop.com/blog/humanoid-robot-105f-texas-heat-telemetry
1•cpsk•11m ago•0 comments

Show HN: Tuneloop – a local CLI for analyzing coding agent session transcripts

https://github.com/tuneloop/tuneloop
4•behat•11m ago•0 comments

The Million-Dollar Talent Wars for 20-Something Math Geniuses

https://www.wsj.com/tech/ai/the-million-dollar-talent-wars-for-20-something-math-geniuses-5cc5a757
2•bookofjoe•13m ago•1 comments

Reproducing Split Brain on CloudNativePG

https://coroot.com/blog/reproducing-split-brain-on-cloudnativepg/
1•ItsGNULinux_•13m ago•0 comments

Show HN: Maybe AI agents shouldn't decide what's sensitive

https://github.com/softcane/hamza
1•pradeep1177•13m ago•0 comments

Lasers could recharge drones in mid-air to extend flying time

https://www.thenationalnews.com/future/technology/2026/07/29/lasers-could-recharge-drones-in-mid-...
1•yogthos•14m ago•0 comments

First-of-kind Guillain-Barré drug switches off part of immune system

https://www.newscientist.com/article/2582376-first-targeted-treatment-for-guillain-barre-syndrome...
2•atombender•16m ago•1 comments

Show HN: GitHub scanner that finds real ISO 27001/SoC 2 gaps – no AI, no signup

https://normos.io/free-github-scan
1•chrisbuilds42•18m ago•0 comments

A Photo of the Sun Through the Earth

https://www.stevestewartwilliams.com/p/peering-at-the-sun-through-the-earth
2•taylorbuley•19m ago•0 comments

Leopold Aschenbrenner's Situational Awareness seeks capital after AI rout

https://www.ft.com/content/280336bf-dbed-405f-b38e-5af644a21549
2•d_silin•20m ago•0 comments

UEFA members vote to boycott FIFA if Infantino's World Cup plans pursued

https://www.aljazeera.com/sports/2026/7/30/uefa-members-agree-fifa-boycott-if-world-cup-plans-pur...
4•TechTechTech•21m ago•1 comments

Amazon's Zoox to begin charging for rides in Las Vegas after clearing NHTSA

https://www.cnbc.com/2026/07/30/amazon-zoox-robotaxi-rides-las-vegas.html
1•jameslk•21m ago•0 comments

FAA just made an airplane legal that could not have been certified a month ago

https://www.federalregister.gov/documents/2026/07/16/2026-14298/accepted-consensus-standards-for-...
1•r2sk5t•21m ago•2 comments