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•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/

AI Cheats [pdf]

https://metr.org/risk-report-feb-mar-2026.pdf
1•brian_herman•8m ago•0 comments

One Job That Is Growing in the A.I. Era? Cybersecurity Experts

https://www.nytimes.com/2026/05/24/technology/ai-cybersecurity-jobs.html
1•mooreds•12m ago•0 comments

Two Researchers Are Rebuilding Mathematics from the Ground Up

https://www.quantamagazine.org/two-researchers-are-rebuilding-mathematics-from-the-ground-up-2026...
1•pseudolus•12m ago•0 comments

You Will Never Upload Your Mind: The ASML Machine vs. One Living Neuron

https://julianzoria.substack.com/p/why-you-will-never-upload-your-mind
1•JulianZoria•13m ago•0 comments

Google employee charged with $1M Polymarket insider trading bet on search term

https://www.cnbc.com/2026/05/27/google-employee-polymarket-insider-trading.html
1•pseudolus•13m ago•0 comments

Understanding CORS for API Developers

https://www.postpilot.dev/blog/understanding-cors-for-api-developers
1•anlac96_it•15m ago•0 comments

Yes, Designers Should Code

https://www.bitsandletters.com/ideas/what-is-a-design-engineer
1•demaree•18m ago•0 comments

Learning about food and myself at the "edge of the world"

https://medium.com/@mnm2163/learning-about-food-and-myself-at-the-edge-of-the-world-c1185a7c5b5f
1•mooreds•20m ago•0 comments

Can we have the day off?

https://mlsu.io/posts/day-off/
79•mlsu•23m ago•20 comments

Xerolith

https://xerolith.com/
3•XerolithAI•27m ago•0 comments

The Pioneer Anomaly

https://en.wikipedia.org/wiki/Pioneer_anomaly
1•Jimmc414•28m ago•0 comments

Woman without right hand charged for holding phone in right hand while driving

https://cbs12.com/news/local/florida-news-viral-tiktok-charges-dismissed-for-woman-without-right-...
4•hn_acker•30m ago•4 comments

Show HN: An update to our long-turn FreeCiv experience

https://freeciv.andrewmcgrath.info/
2•verelo•39m ago•0 comments

StumbleTV: Chat Roulette but for Exposed Webcams

https://stumbletv.alectrocute.workers.dev/c/2e6ff336f1235cc1
3•arm32•41m ago•0 comments

The millionaires tax was pitched as a $2B revenue source. It's blown past that

https://www.bostonglobe.com/2026/05/25/metro/millionaires-tax-massachusetts/
3•ceejayoz•44m ago•0 comments

Delaware court upholds voting by companies in small town's election

https://www.reuters.com/legal/government/delaware-court-upholds-voting-by-companies-small-towns-e...
3•anigbrowl•44m ago•0 comments

Poll: Would you allow a first generation plumber robot in your home?

2•Bender•53m ago•1 comments

Amazon Strikes $6B Deal with Snowflake for Agentic Computing Chips

https://www.wsj.com/tech/amazon-strikes-6-billion-deal-with-snowflake-for-its-agentic-computing-c...
3•jpau•53m ago•0 comments

Breaking Rust

https://en.wikipedia.org/wiki/Breaking_Rust
2•petethomas•56m ago•0 comments

Agents can sign up for Composio

https://composio.dev/blog/your-agents-can-signup-for-composio
2•mooreds•56m ago•0 comments

Xania Monet

https://en.wikipedia.org/wiki/Xania_Monet
2•petethomas•57m ago•0 comments

Agent Security Is a Systems Problem

https://arxiv.org/abs/2605.18991
2•yakkomajuri•1h ago•0 comments

Attrition: The Chinese Family Collapse

https://www.strategypage.com/htmw/htatrit/articles/2026052754034.aspx
4•skmurphy•1h ago•2 comments

The Authorization Paradox: Who Has the Keys to Your AI? [video]

https://www.youtube.com/watch?v=5UUpxgcGKXk
2•mooreds•1h ago•0 comments

GitMo – Auto sync your local project files to GitHub while you work.

https://github.com/KyleBenzle/GitMo/tree/main
2•WWIII_Historian•1h ago•0 comments

Ansel: Complete Pipeline Overhaul

https://ansel.photos/en/news/complete-pipeline-overhaul/
2•neucoas•1h ago•0 comments

Dutch block US takeover of Solvinity as against public interest

https://www.reuters.com/technology/dutch-government-block-takeover-cloud-services-company-solvini...
4•rectang•1h ago•1 comments

Show HN: Liiists, a Markdown-first, iOS and CLI list app

https://github.com/djt53/liiists
2•dtingle•1h ago•0 comments

What Will Happen When the AI Barons Give Back?

https://www.nytimes.com/2026/05/27/opinion/ai-philanthropy-charity.html
2•berkeleyjunk•1h ago•0 comments

You Should Not Update Your Dependencies

https://www.mendral.com/blog/you-should-not-update
19•OlivierCG•1h ago•3 comments