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

Comments

bastawhiz•10mo ago
Is this a problem that people actually have?
xeromal•10mo ago
Fun side project man!
primitivesuave•10mo 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•10mo 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•10mo 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/

Western AI models "fail spectacularly" in farms and forests abroad

https://restofworld.org/2026/ai-agriculture-local-data/
1•i7l•2m ago•0 comments

The War Trump Doesn't Want to Talk About

https://www.newyorker.com/news/letter-from-trumps-washington/the-war-trump-doesnt-want-to-talk-about
1•petethomas•7m ago•0 comments

The State of the Culture (2024)

https://www.honest-broker.com/p/the-state-of-the-culture-2024
1•dgudkov•9m ago•0 comments

"This Is Not the Computer for You"

https://samhenri.gold/blog/20260312-this-is-not-the-computer-for-you/
2•MBCook•11m ago•1 comments

AI Killed My Job: Educators

https://www.bloodinthemachine.com/p/if-ai-is-writing-the-work-and-ai
1•cdrnsf•11m ago•0 comments

Harvey Weinstein gives first interview in six years, says prison life is "hell"

https://www.nme.com/news/film/harvey-weinstein-gives-first-interview-in-six-years-says-prison-lif...
1•tartoran•12m ago•0 comments

AI is great at writing code. It's terrible at making decisions

https://untangle.work/blog/ai-writes-code-terrible-at-decisions/
3•kdbgng•15m ago•0 comments

Lies I was told about collaborative editing, Part 2: Why we don't use Yjs

https://www.moment.dev/blog/lies-i-was-told-pt-2
2•antics•18m ago•0 comments

AI assistant with web search and reasoning

https://chatbot-ai-assistant.netlify.app
2•arturgvieira•21m ago•1 comments

The Psychological Edge That Separates Consistent Traders from Everyone Else

https://dollarsplan.blogspot.com/2026/03/the-psychological-edge-that-separates.html
1•aamoudaamoud•23m ago•0 comments

AI is helping expand the frontier of theoretical physics

https://www.economist.com/science-and-technology/2026/03/11/ai-is-helping-expand-the-frontier-of-...
1•petethomas•25m ago•0 comments

Why Top-Down Orchestration Hits a Wall

https://nikogura.com/PuppetsAndOctopi.html
2•mooreds•28m ago•0 comments

Tool-Shaped Objects

https://minutes.substack.com/p/tool-shaped-objects
1•pocksuppet•28m ago•0 comments

Just tell me, when do we collectively f*cking this company?

https://twitter.com/i/status/2032265184610320628
1•egesabanci•31m ago•0 comments

Legacy Post

https://old.reddit.com/r/PisequaltoNP/comments/1rs9pmm/a_deterministic_oracle_machine_resolving_n...
1•KaoruAK•32m ago•1 comments

Competing for growth post singularity – when agents run firms

https://twitter.com/OttoZastrow/status/2025809384769737014
2•OttoZastrow•36m ago•1 comments

Technological Speed Limit

https://metastable.org/speed-limit/
1•gmays•41m ago•0 comments

The Cheese and the Worms

https://en.wikipedia.org/wiki/The_Cheese_and_the_Worms
2•zeristor•44m ago•1 comments

Sucker: My Year as a Degenerate Gambler

https://www.theatlantic.com/magazine/2026/04/online-sports-betting-app-addiction/686061/
2•csheehan10•46m ago•0 comments

I built a game where you guess the AI prompt behind images

https://www.indiehackers.com/post/i-built-a-game-where-you-guess-the-ai-prompt-behind-images-RakW...
1•irtizahammad•47m ago•0 comments

macOS for Developers: 5 Essential Skills to Master Terminal, Homebrew and Docker

https://rakiabensassi.substack.com/p/macos-for-developers-5-essential
1•rakiabensassi•47m ago•1 comments

The Moments That Made 2025

https://rakiabensassi.substack.com/p/the-moments-that-made-2025
1•rakiabensassi•48m ago•0 comments

The Great Transition or the Great Integration?

https://horkan.com/2026/03/12/the-great-transition-or-the-great-integration
1•wayne_horkan•50m ago•0 comments

Support Celestrak

https://giving.classy.org/campaign/750670/donate
1•d_silin•54m ago•0 comments

Adjustments to the China Storefront of the App Store on iOS and iPadOS

https://developer.apple.com/news/?id=dadukodv
3•surprisetalk•58m ago•0 comments

Elon Musk: xAI was not built right first time round; is being rebuilt

https://twitter.com/elonmusk/status/2032201568335044978
5•mellosouls•1h ago•1 comments

Enhanced Atkinson Hyperlegible Font (2025)

https://www.brailleinstitute.org/about-us/news/braille-institute-launches-enhanced-atkinson-hyper...
1•droidjj•1h ago•0 comments

OSS Anti Surveillance: project to track, oppose, and remove surveillance in FOSS

https://github.com/AntiSurv/oss-anti-surveillance
1•iamnothere•1h ago•3 comments

Explainer: What is Basel and why has it been so contentious?

https://www.reuters.com/legal/legalindustry/what-is-basel-why-has-it-been-so-contentious-2026-03-12/
1•petethomas•1h ago•0 comments

Show HN: The Common Infrastructure for Agentic Communication

https://cyrisai.dev/
1•krishnamzg•1h ago•0 comments