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•10mo 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•10mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

GoDaddy launches DomainMaxxing to optimize your domains

https://domainincite.com/31604-godaddy-launches-domainmaxxing-to-optimize-your-domains
1•aestetix•2m ago•0 comments

Exploiting a 32-year-old buffer overflow in GNU telnetd (CVE-2026-32746)

https://www.striga.ai/research/pre-auth-rce-in-gnu-inetutils-telnetd
1•traekfuglene•3m ago•1 comments

Dynamics of Higher-Order Residual Networks

https://jiha-kim.github.io/posts/second-order-residual-networks/
1•ibobev•3m ago•0 comments

How to periodically sync a Git repository with its remote

https://xnacly.me/posts/2023/x-git-sync/
1•ibobev•3m ago•0 comments

Show HN: ThreePointTwo – Utility-first inline attributes for the World Wide Web

https://dchest.github.io/threepointtwo/
1•dchest•3m ago•0 comments

Cookwell: The Fundamentals of Cooking

https://www.cookwell.com/fundamentals
1•lordleft•4m ago•0 comments

There is absolutely nothing wrong with Web

https://purplesyringa.moe/blog/there-is-absolutely-nothing-wrong-with-web/
1•ibobev•4m ago•0 comments

I created one of the most complex eBPF project with Claude/Cursor

https://github.com/Cybereason-Public/owLSM
1•SilverPlate3•4m ago•0 comments

Show HN: Baton – A desktop app for developing with AI agents

https://getbaton.dev/
2•tordrt•5m ago•0 comments

Our Ray: debugging is better together

https://spatie.be/blog/introducing-ourrayapp-debugging-is-better-together
2•freekmurze•8m ago•0 comments

Missile from Iran' hits oil tanker off Qatar's coast

https://www.aljazeera.com/news/liveblog/2026/4/1/iran-live-trump-says-no-deal-needed-to-end-war-i...
4•tartoran•11m ago•0 comments

Deep-Claw: the first agent that learns for you

https://www.deep-ml.com/deep-claw
2•mchab•12m ago•1 comments

Applied Behavior Analysis for Game and UX Designers

https://goldenxp.com/posts/2025/07/05/ABA-Game-Design/
2•goldenxp•13m ago•0 comments

JetBrains Central: An Open Control Plane for Coding Agents

https://blog.jetbrains.com/blog/2026/03/24/introducing-jetbrains-central-an-open-system-for-agent...
2•awsnovabot•14m ago•1 comments

NASA's Artemis II Live Mission Coverage [video]

https://www.youtube.com/watch?v=m3kR2KK8TEs
2•janpot•14m ago•0 comments

The ARM takeover nobody announced?

https://foudil.fr/blog/posts/arm-takeover/
2•07cwu9•17m ago•0 comments

Show HN: An agent that adapts by creating new tools to suit its task on the fly

4•grimm8080•17m ago•0 comments

The Subprime AI Crisis

https://www.wheresyoured.at/subprimeai/
2•signa11•18m ago•1 comments

Yo-GPT: A Model That Can Say "Yo"

https://www.neurometric.ai/products/yo-gpt
2•robmay•20m ago•0 comments

NASA Tracking Car-Sized Asteroid Approaching Earth Tomorrow

https://www.newsweek.com/nasa-tracking-car-sized-asteroid-approaching-earth-tomorrow-2026-fm3-117...
2•thinkingemote•20m ago•0 comments

Open Search Lib Benchmark with new contender and winner

https://tantivy-search.github.io/bench/?
2•janemanos•22m ago•0 comments

SafeOSS Forever

https://safe-oss-forever.com/
2•chadfurman•23m ago•2 comments

Hours battery life: Dell XPS 14 2026 lasts 3x longer vs. MacBook Air 15 M5

https://www.notebookcheck.net/43-hours-battery-life-Dell-XPS-14-2026-lasts-almost-3x-longer-vs-Ma...
2•politelemon•29m ago•1 comments

Proton Launches Meet, an End-to-End Encrypted Video Conferencing Service

https://www.ghacks.net/2026/04/01/proton-launches-meet-an-end-to-end-encrypted-video-conferencing...
2•Unai•31m ago•0 comments

Starlink satellite 34343 disappears in 'fragment creation event'

https://www.tomshardware.com/service-providers/network-providers/starlink-satellite-34343-disappe...
4•gradus_ad•32m ago•0 comments

Germany Funded Israel's Nuclear Program

https://www.haaretz.com/israel-news/israel-security/2026-03-13/ty-article-magazine/.highlight/his...
8•sharpshadow•36m ago•0 comments

Working Claude Code from Source

https://github.com/777genius/claude-code-working
2•777genius•37m ago•0 comments

A Mysterious Numbers Station Is Broadcasting Through the Iran War

https://www.wired.com/story/a-mysterious-numbers-station-is-broadcasting-through-the-iran-war/
6•thinkingemote•37m ago•1 comments

Hoog: Why LA Can't Build [video]

https://www.youtube.com/watch?v=UF5YCnUuJuQ
2•Klaster_1•40m ago•0 comments

AI chatbots may be too validating for their own good

https://www.techradar.com/ai-platforms-assistants/why-you-shouldnt-ask-chatgpt-for-relationship-a...
2•steveharing1•40m ago•0 comments