frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo ago

Comments

bastawhiz•7mo ago
Is this a problem that people actually have?
xeromal•7mo ago
Fun side project man!
primitivesuave•7mo 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•7mo 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•7mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•7mo 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•7mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Show HN: I'm sharing research insights from context engineering papers

https://github.com/momo-personal-assistant/momo-research/blob/main/Context%20Engineering%3A%20Ses...
1•cailynyongyong•1m ago•0 comments

How AI is rewiring childhood: Dazzling opportunities and ominous risks

https://www.economist.com/leaders/2025/12/04/how-ai-is-rewiring-childhood
1•isolli•1m ago•0 comments

Why I'm losing faith in UX (2021)

https://creativegood.com/blog/21/losing-faith-in-ux.html
1•gherkinnn•4m ago•0 comments

Clawd – Peter's crusted AI assistant

https://clawd.me/
1•gmitscha•11m ago•0 comments

Ben Green's list of 100 Open Problems [pdf]

https://people.maths.ox.ac.uk/greenbj/papers/open-problems.pdf
2•frozenseven•13m ago•0 comments

OpenAI's Stargate project to consume up to 40% of global DRAM output

https://www.tomshardware.com/pc-components/dram/openais-stargate-project-to-consume-up-to-40-perc...
2•tormeh•13m ago•2 comments

This Month in Redox – November 2025

https://www.redox-os.org/news/this-month-251130/
2•breve•14m ago•0 comments

Chernobyl Fungus Appears to Have Evolved an Ability

https://www.sciencealert.com/chernobyl-fungus-appears-to-have-evolved-an-incredible-ability
1•cromka•14m ago•0 comments

Beyond x86: Java on ARM in 2025

https://www.javaadvent.com/2025/12/beyond-x86-java-on-arm-in-2025.html
1•ingve•15m ago•0 comments

Haskell IS a great language for data science

https://jcarroll.com.au/2025/12/05/haskell-is-a-great-language-for-data-science/
1•mchav•15m ago•0 comments

Show HN: Dooza Desk – AI-native customer support for small teams (free pilots)

https://www.doozadesk.com
1•Sibinarendran•16m ago•0 comments

How do you keep up with AI/crypto/markets without drowning in noise?

1•alex-vasper•18m ago•1 comments

Free Online Invoice Generator – No Signup Free

https://invoiceace.app
1•samanki•21m ago•0 comments

BrainPredict – 445 AI models for business predictions, 100% on-premises

https://brainpredict.ai
2•brainpredict•22m ago•1 comments

OWASP Cheat Sheet Series

https://cheatsheetseries.owasp.org/index.html
1•creata•22m ago•0 comments

Why AI coding has made me stop using Django [video]

https://www.youtube.com/watch?v=9rsBaTRI7Is
1•mesmertech•25m ago•1 comments

Undisclosed Deaths in the Pfizer mRNA Covid-19 Vaccine Trial [pdf]

https://jpands.org/vol30no4/kunadhasan.pdf
3•hwj•28m ago•0 comments

Free Beta: Fine-tuning SDK for LLMs, comments welcome

https://www.hpc-ai.com/fine-tuning
5•CrazyLLM•30m ago•1 comments

AI Is still making code worse: A new CMU study confirms

https://blog.robbowley.net/2025/12/04/ai-is-still-making-code-worse-a-new-cmu-study-confirms/
1•ingve•31m ago•0 comments

Cloudspecs: Cloud Hardware Evolution Through the Looking Glass [pdf]

https://www.cs.cit.tum.de/fileadmin/w00cfj/dis/papers/cloudspecs-final.pdf
1•luu•34m ago•0 comments

The list of ChatGPT MCP servers

https://github.com/Instafill/chatgpt-apps-connectors
2•alexander-g•34m ago•0 comments

Grand Jury declines to re-indict Letitia James

https://vechron.com/2025/12/grand-jury-rejects-letitia-james-indictment-trump-doj/
8•GeorgeWoff25•36m ago•1 comments

UniFi 5G

https://blog.ui.com/article/introducing-unifi-5g
2•janandonly•41m ago•1 comments

Show HN: InboxTutor – Learn anything, one email at a time

1•vadepaysa•42m ago•0 comments

Ask HN: Large Language Model API Calling Website Recommendations

1•jsxyzb•42m ago•0 comments

Can There Ever Be Too Many Options? A Meta-Analytic Review of Choice Overload

https://academic.oup.com/jcr/article-abstract/37/3/409/1827647?redirectedFrom=fulltext&login=false
2•NavinF•49m ago•1 comments

Ask HN: Did ADHD treatment unlock your ability to work on self-directed work?

2•dkarras•53m ago•2 comments

The Agency Continuum

https://bikeshedding.substack.com/p/the-agency-continuum
1•zettacio•55m ago•0 comments

Robots that spare warehouse workers the heavy lifting

https://news.mit.edu/2025/robots-spare-warehouse-workers-heavy-lifting-1205
1•meysamazad•1h ago•0 comments

Dockge: Self-hosted – Docker compose.yaml – Stack-oriented Manager

https://dockge.kuma.pet/
1•thunderbong•1h ago•0 comments