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/

Fedora Approves a Smaller Grub

https://lwn.net/Articles/1085609/
1•pykello•1m ago•0 comments

A Vision for Cargo

https://epage.github.io/blog/2026/08/cargo-vision/
1•ingve•2m ago•0 comments

Mathematicians make a breakthrough on Gauss's riddle, unsolved for 200 years

https://www.scientificamerican.com/article/mathematicians-make-a-breakthrough-on-gausss-riddle-un...
1•pykello•3m ago•0 comments

For Chinese LLMs, do you care about mainland-hosted vs. overseas endpoints?

https://api.realitypatch.net/
1•yangzhou-tech•6m ago•0 comments

Meta's Mac Coding Agent Costs Up to 20x Less If You Let It Train on Your Data

https://www.macrumors.com/2026/08/05/meta-muse-code-for-mac/
1•thm•7m ago•0 comments

Journey to Robbers Cave – Behavioral Scientist

https://behavioralscientist.org/journey-to-robbers-cave/
1•pulkonet•9m ago•0 comments

I built a postpartum recovery app after reading many stories from new mothers

https://play.google.com/store/apps/details?id=com.matrabloom.app&hl=en_IN
1•rahulsinghhh•12m ago•0 comments

Obsidian debuts Airtable to local Markdown file importer rescue tool

https://obsidian.md/help/import/airtable
1•thoughtpeddler•14m ago•0 comments

Dissection of Flock Safety Camera

https://www.cehrp.org/dissection-of-flock-safety-camera/
1•sandebert•14m ago•0 comments

Let's all meet up in the Y2K

https://blog.gingerbeardman.com/2026/08/06/lets-all-meet-up-in-the-y2k/
1•msephton•15m ago•0 comments

Design Test

1•ccbakla•17m ago•0 comments

You Can't Optimize for Rest (2021)

https://theconvivialsociety.substack.com/p/you-cant-optimize-for-rest
1•downbad_•17m ago•0 comments

Own-Goal Football (2022)

https://generalist.academy/2022/06/07/own-goal-football/
1•downbad_•17m ago•0 comments

The American Age in the Persian Gulf Is Over

https://phillipspobrien.substack.com/p/midweek-update-22-the-american-age
1•JumpCrisscross•19m ago•0 comments

Britain will soon be Europe's energy powerhouse

https://www.telegraph.co.uk/business/2026/08/04/britain-will-soon-be-europes-energy-powerhouse/
1•sbyse•24m ago•0 comments

Weezer CEO [video]

https://www.youtube.com/watch?v=F0N5Kg3FmtI
1•sgt•26m ago•0 comments

So within, so without. What grows from the datacentre

https://iain.so/so-within-so-without-what-grows-from-the-datacentre
1•iainharper•27m ago•0 comments

I gave Claude Code and KimiCode shared memory so they stop forgetting my project

https://github.com/ConradLu2740/ProactiveAgent
1•conradlu•33m ago•0 comments

On non-rooted Android 17, ADB uninstall of system apps fails

https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/issue...
2•microtonal•34m ago•0 comments

OpenAI Didn't Notice Its AI Agents Using Message Board to Plan Hacking Spree

https://www.wired.com/story/openai-didnt-notice-its-ai-agents-using-a-message-board-to-plan-their...
4•TMWNN•35m ago•1 comments

Ask HN: What's wrong with my prompting for Claude 5?

1•SmolSpideritito•36m ago•0 comments

Shopify shares soar as AI efforts begin to pay off

https://www.theglobeandmail.com/business/article-shopify-shares-soar-as-ai-efforts-begin-to-pay-off/
1•petethomas•38m ago•0 comments

Prime Agent: A Self-Improving RLM Agent

https://github.com/PrimeIntellect-ai/prime-agent
1•wertyk•38m ago•0 comments

Who's legally to blame for Anthropic and OpenAI's autonomous AI hacks?

https://techcrunch.com/2026/08/03/whos-legally-to-blame-for-anthropic-and-openais-autonomous-ai-h...
1•reasonableklout•41m ago•0 comments

A CLI that deploys your Express/NestJS app to your own AWS or Azure – no IaC

https://www.indiehackers.com/post/7-weeks-solo-a-cli-that-deploys-your-express-nestjs-app-to-your...
1•feras_allaou•41m ago•0 comments

Token-Budget-Aware LLM Reasoning

https://arxiv.org/abs/2412.18547
1•ankitg12•41m ago•0 comments

Show HN: Scout – a self-hosted Discord AI memory bot

https://github.com/j-sofia/Scout
1•j-sofia•43m ago•0 comments

Reddit signals ominous upcoming "changes" for old.reddit.com

https://arstechnica.com/gadgets/2026/08/reddit-signals-ominous-upcoming-changes-for-old-reddit-com/
7•arto•43m ago•0 comments

RuleSync – ESLint and Babel for AI Agent Rules (Claude.md, .cursor/Rules)

https://github.com/juwonllee2024-dotcom/rulesync
1•JUWONLEA•46m ago•0 comments

Muse Spark 1.2: Improved Agentic Performance at Higher Cost per Task

https://artificialanalysis.ai/articles/muse-spark-1-2
1•theanonymousone•47m ago•0 comments