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

Comments

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

House lawmakers get a chilling demo of 'jailbroken' AI

https://www.politico.com/news/2026/04/22/ai-chatbots-jailbreak-safety-00887869
1•0in•2m ago•0 comments

Anthropic has surged to a trillion-dollar valuation on secondary markets

https://www.businessinsider.com/anthropic-trillion-dollar-valuation-on-secondary-markets-2026
1•Growtika•2m ago•0 comments

I Am Building a Cloud

https://crawshaw.io/blog/building-a-cloud
2•bumbledraven•4m ago•0 comments

Half of AI health answers are wrong even though they sound convincing

https://theconversation.com/half-of-ai-health-answers-are-wrong-even-though-they-sound-convincing...
1•KnuthIsGod•4m ago•0 comments

Iran's IRGC warns it may cut undersea internet cables in Persian Gulf

https://www.msn.com/en-in/money/news/iran-s-irgc-warns-it-may-cut-undersea-internet-cables-in-per...
1•KnuthIsGod•5m ago•0 comments

Open source is not the problem, but its misuse by corporations

https://www.heise.de/en/blog/Open-source-is-not-the-problem-but-its-misuse-by-corporations-112667...
1•goloroden•6m ago•0 comments

ChatGPT for Clinicians

https://twitter.com/thekaransinghal/status/2047091103170785324
1•stenlix•7m ago•0 comments

MacBook Neo and How the iPad Should Be

https://craigmod.com/essays/ipad_neo/
1•jen729w•8m ago•0 comments

'Intelligence may be scalable, but accountability is not'

https://www.msn.com/en-us/news/technology/intelligence-may-be-scalable-but-accountability-is-not-...
1•galaxyLogic•8m ago•0 comments

DragonRuby's Seventh Year – Where We Started and Where We're Going

https://dragonruby.itch.io/dragonruby-gtk/devlog/1497015/dragonrubys-seventh-year-where-we-starte...
2•doppp•12m ago•0 comments

Pokemon Red and the Evolution of FSM

https://www.makonea.com/en-US/blog/Pokemon-Red-and-the-Evolution-of-FSM
1•jdw64•13m ago•0 comments

Hackers tricked Sri Lanka's Treasury into sending $2.5M to the wrong account

https://www.ft.lk/top-story/Treasury-rocked-by-2-5-m-fraud/26-791019
1•oshanz•15m ago•0 comments

MartinLoop – The control plane for autonomous AI agents

https://github.com/Keesan12/martin-loop
1•martinloop•15m ago•0 comments

In the age of AI, why do Australian company boards have few technology experts?

https://theconversation.com/in-the-age-of-ai-why-do-australian-company-boards-have-so-few-technol...
1•indynz•27m ago•0 comments

Low Contrast UI Pandemic

1•mr-pink•29m ago•0 comments

A Boy That Cried Mythos: Verification Is Collapsing Trust in Anthropic

https://www.flyingpenguin.com/the-boy-that-cried-mythos-verification-is-collapsing-trust-in-anthr...
4•taejavu•31m ago•0 comments

Choose Boring Technology

https://mcfunley.com/choose-boring-technology
1•doppp•39m ago•1 comments

Show HN: MailScrub – terminal UI for bulk Gmail unsubscribing

https://github.com/brooksc/MailScrub
1•brooksc•46m ago•0 comments

Search, Experience, Credence – classification of resources

https://en.wikipedia.org/wiki/SEC_classification_of_goods_and_services
1•downboots•49m ago•0 comments

Roast my game: Photobomb mobile multiplayer party game

https://www.photobomb.online/
1•alhwyn•51m ago•1 comments

God's View – Realtime BGP Looking Glass and IP Lookup

https://god.ad/
1•tgma•51m ago•0 comments

A classic Excel ad just got a 2026 upgrade [video]

https://www.youtube.com/watch?v=iEVx2ylAbI4
2•xtrkil•54m ago•0 comments

Meta will record employees' keystrokes and use it to train its AI models

https://techcrunch.com/2026/04/21/meta-will-record-employees-keystrokes-and-use-it-to-train-its-a...
3•jomon003•54m ago•0 comments

Article

https://mag.openrockets.com/p/developmental-integrity-di-and-the-cognitive-environments-why-minor...
2•openrockets•54m ago•0 comments

Show HN: Real-Real-Time Chat

https://kraa.io/kraa/trees
2•levmiseri•57m ago•0 comments

Building agents that reach production systems with MCP

https://claude.com/blog/building-agents-that-reach-production-systems-with-mcp
2•armcat•1h ago•0 comments

Anthropic: No "kill switch" for AI in classified settings

https://www.axios.com/2026/04/22/anthropic-no-kill-switch-ai-classified-settings
3•dsavant•1h ago•1 comments

America's descent into state capitalism is exaggerated

https://www.economist.com/business/2026/04/22/americas-descent-into-state-capitalism-is-exaggerated
2•andsoitis•1h ago•1 comments

It's time to reclaim the word "Palantir" for JRR Tolkien

https://www.zig.art/p/its-time-to-reclaim-the-word-palantir
33•IdahoSpring•1h ago•10 comments

Google upgrades AI Mode in the Chrome browser

https://blog.google/products-and-platforms/products/search/ai-mode-chrome/
1•gmays•1h ago•0 comments