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/

Money isn't going to solve the burnout problem

https://blogs.gentoo.org/mgorny/2026/03/07/money-isnt-going-to-solve-the-burnout-problem/
2•dennisjoseph•11m ago•0 comments

Best laptop Apple ever made [video]

https://www.youtube.com/watch?v=JpPIrmZB828
1•vinhnx•13m ago•0 comments

Uber to Invest Up to $1.25B in Rivian Robotaxis

https://www.wsj.com/business/autos/uber-to-invest-up-to-1-25-billion-in-rivian-robotaxis-8b295925
1•bookofjoe•22m ago•1 comments

Buy Now, Pay Later Makes Billions Off People's Struggles [video]

https://www.youtube.com/watch?v=0mYvLHJd9ww
1•mgh2•23m ago•0 comments

Fountain Pen Writing Science Analysis

https://www.nakaya.org/en/commitment/23114/
2•Brajeshwar•33m ago•0 comments

Record Number of Student Loan Borrowers Are in Delinquency and Default

https://www.nytimes.com/2026/03/20/business/student-loan-deliquency-default.html
1•lxm•35m ago•1 comments

Long-term weight loss maintenance

https://ajcn.nutrition.org/article/S0002-9165(23)29536-2/fulltext
3•paulpauper•37m ago•0 comments

Why American cities pay over $3k for one trash can

https://thehustle.co/originals/why-american-cities-pay-over-3000-for-one-trash-can
2•paulpauper•38m ago•0 comments

How Long Can a Quadcopter Drone Fly on Just Solar?

https://hackaday.com/2026/03/20/how-long-can-a-quadcopter-drone-fly-on-just-solar/
2•lxm•39m ago•0 comments

The Hypocrisy at the Heart of the AI Industry

https://www.theatlantic.com/technology/2026/03/hypocrisy-ai-industry/686477/
2•paulpauper•40m ago•0 comments

Algorithm Visualizer

https://algorithm-visualizer.org/
1•vinhnx•41m ago•0 comments

FFmpeg 101 (2024)

https://blogs.igalia.com/llepage/ffmpeg-101/
2•vinhnx•41m ago•0 comments

Show HN: Interactive simulation of what your phone does behind the screen

https://canitrustmydevice.com
1•starsmartonl•42m ago•0 comments

I built a zero-knowledge vault with WebAuthn passkeys, no passwords

https://emvproject-production.up.railway.app
2•ejpow•44m ago•0 comments

Mystery Science Theater fan finds and uploads lost episode “K03”

https://www.pastemagazine.com/tv/great-job-internet/mystery-science-theater-3000-lost-episode-k03...
1•coloneltcb•48m ago•0 comments

Sam Altman's Sister's Abuse Claims Against Him Dismissed for Now

https://www.bloomberg.com/news/articles/2026-03-21/sam-altman-sister-s-abuse-claims-against-him-d...
3•aanet•49m ago•0 comments

Open-source Infinite Canvas for managing AI agents

https://github.com/49agents/49agents
1•halcdev•51m ago•0 comments

Evil ClawHack NY

https://nyc.aitinkerers.org/p/evil-clawhack-ny
1•nycdatasci•53m ago•1 comments

Ask HN: How are angels and micro-VCs managing deal flow in 2026?

1•benj_mrtn•59m ago•0 comments

Hive Agents Top OpenAI Parameter Golf Challenge

https://hive.rllm-project.com/task/parameter-golf
1•deviscold•59m ago•1 comments

Ask HN: What should I do to land a position soon?

3•kdroids•1h ago•4 comments

Show HN: A daily deduction game questioning an AI source to find the answer

https://www.play5Qs.com
1•kdubber•1h ago•1 comments

Fibonacci slop is out of control [video]

https://www.youtube.com/watch?v=LWJzirlCv8I
1•vinhnx•1h ago•0 comments

America's biggest problem (it's not what you think)

https://czhou.bearblog.dev/americas-biggest-problem-its-not-what-you-think/
3•czhou578•1h ago•0 comments

Ask HN: Are AI mandates a good idea?

3•Solar_Flare•1h ago•1 comments

My dad vibe-coded a thermostat UI in 12 hours

https://mlich.eu/posts/my-dad-vibe-coded-a-thermostat-ui-in-12-hours/
1•jurajmlich•1h ago•0 comments

Show HN: Yet another Claude Code agent setup, but several noval patterns

https://github.com/notque/claude-code-toolkit
1•AndyNemmity•1h ago•1 comments

FIVE09HUB

https://five09konekte.com/
3•YungDope•1h ago•0 comments

purl: a curl-esque CLI for making HTTP requests that require payment

https://www.purl.dev/
2•bpierre•1h ago•0 comments

MacinAI Local: Building a Model-Agnostic LLM Inference Engine for Mac OS 9

https://oldapplestuff.com/blog/MacinAI-Local/
1•lampiaio•1h ago•0 comments