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/

Reminiscing about the 90s

https://www.reddit.com/r/90s/comments/1x2tvxb/i_dont_even_recognize_this_world_anymore/
1•abhikul0•29s ago•0 comments

Zls 0.17.0

https://zigtools.org/zls/releases/0.17.0/
1•birdculture•2m ago•0 comments

Run iOS on Android Phones

2•spicygum•3m ago•0 comments

Cloudflare is rewriting everything in Rust

https://kerkour.com/rust-at-cloudflare
1•tonyedgecombe•4m ago•0 comments

Show HN: Shay.me – Personal AI assistant to get things done

1•arjumand•7m ago•0 comments

TornadoVM 7 Enables GPU-Native Workloads from Java Applications

https://www.infoq.com/news/2026/10/tornadovm-7-gpu/
1•pjmlp•7m ago•0 comments

Show HN: Tinytowns, a small model to generate realistic sounding town names

https://quirkyagents.com/wizard/projects/tinytowns/
2•dave8172•11m ago•0 comments

Show HN: NeoInbox, a recreation of Google Inbox as a Thunderbird extension

https://neoinbox.freakified.net/
1•FreakyT•13m ago•0 comments

Show HN: AIQualityHQ – Browser-native prompt QA and security guardrails

https://aiqualityhq.com
1•pntkrl•13m ago•0 comments

Show HN: PrintPixel Tool – Client-side image print size and quality calculator

https://printpixeltool.com/
1•pntkrl•14m ago•0 comments

CVE-2026-111943: Compromised Intermediate Certificate Authority

https://nvd.nist.gov/vuln/detail/cve-2026-111943
6•keks24•17m ago•0 comments

Poland says social media firms are 'silent ally' of Russia, threatens fines

https://www.reuters.com/technology/poland-says-social-media-firms-are-silent-ally-russia-threaten...
3•vrganj•17m ago•0 comments

Why skilj has no aggregates

https://blog.gklijs.tech/tech/2026/why-skilj-has-no-aggregates
1•gklijs•17m ago•0 comments

Show HN: The Companion Lab – What 7 AI companion apps charge on bank statements

https://thecompanionlab.com/billing/
2•dirtyfancy•18m ago•0 comments

Could only have been painted by a madman

https://www.nasjonalmuseet.no/en/stories/explore-the-collection/munch-malet-av-gal-mann-engelsk/
2•bschne•19m ago•0 comments

Ask HN: How do you sandbox your AI agent so it can't delete your files?

2•scsoi•20m ago•1 comments

Achieving AI-style reasoning without an LLM

https://fleetingswallow.com/minotaur-ai-deep-dive-achieving-reasoning-without-a-language-model/
2•edwardchalk•22m ago•0 comments

Unitree H2-X Kung Fu Legend Guardian in Action [video]

https://www.youtube.com/watch?v=Y3zb4o47yqA
2•KellyCriterion•23m ago•0 comments

Show HN: Map any folder to a real drive on Windows – AI agent sandbox

https://subst.scsoi.com/
2•scsoi•24m ago•0 comments

F-Zero GX Cheat Codes Unlock Gold Parts After 23 Years

https://gameloop.gg/articles/f-zero-gx-cheat-codes-unlock-gold-parts-after-23-years-fans/
2•keks24•25m ago•1 comments

Barclays cutting 5k jobs as it increases reliance on AI

https://www.bbc.com/news/articles/cm4g1p347qgxo
7•haunter•25m ago•0 comments

Why Global Trepanation?

https://www.astralcodexten.com/p/why-global-trepanation
2•Michelangelo11•27m ago•0 comments

Stepping Up Guix System Security

https://gofranz.com/blog/stepping-up-guix-system-security/
2•slavgoyim•28m ago•0 comments

Absolute State of Unreal 2026

https://www.joewintergreen.com/absolute-state-of-unreal-2026/
2•krige•31m ago•0 comments

The apostrophe's in the wrong place show I'm human

https://sidsite.com/posts/apostrophes/
2•montebicyclelo•32m ago•0 comments

Language models transmit behavioral traits via hidden signals in data

https://arxiv.org/abs/2507.14805
2•convict•40m ago•0 comments

Node.js security advisory: Brotli decoder RCE (CVE-2026-111497)

https://vercel.com/kb/bulletin/node-js-security-advisory
3•khaled_ismaeel•41m ago•0 comments

API Shadow – See all back end routes in your IDE without running code

1•OmairSaad•41m ago•0 comments

We Need an Agile Moment for AI

https://gingergold.substack.com/p/we-need-an-agile-moment-for-ai
1•AntonJidkov•42m ago•0 comments

OpenClaw creator says he spent $10M in tokens last month

https://www.theregister.com/ai-and-ml/2026/10/21/openclaw-creator-says-he-spent-10-million-in-tok...
3•nephihaha•42m ago•0 comments