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/

The Great CSS Expansion

https://blog.gitbutler.com/the-great-css-expansion
1•Akcium•49s ago•0 comments

Air Powered Segment Display: 3D Printed Microfluidic RAM? [video]

https://www.youtube.com/watch?v=E1BLGpE5zH0
1•thepbone•1m ago•0 comments

Analyzing KDE Project Health with Git

https://pointieststick.com/2026/04/10/analyzing-kde-project-health-with-git/
1•TangerineDream•3m ago•0 comments

AI Is Becoming a Company Operating System Layer

https://raffy.ch/blog/2026/04/06/ai-is-becoming-an-operating-system-layer/
1•gmays•4m ago•0 comments

Supernova, lensed by gravity, expected to reappear fourth time

https://www.science.org/content/article/how-fast-universe-expanding-cosmic-illusions-may-hold-answer
1•_alternator_•5m ago•0 comments

I Hate Tailwind and Love Bootstrap

https://necromant2005.github.io/dev/why-i-hate-tailwind-and-love-bootstrap/
1•rmykhajliw•5m ago•0 comments

AI 2027 (2025)

https://ai-2027.com/?
1•tfpgh•5m ago•0 comments

Where Is the Midjourney for Robot Simulations?

https://www.hapticlabs.ai/blog/2026/04/06/where-is-the-midjourney-for-robot-simulations
2•chrisaiv•5m ago•0 comments

In defense of GitHub's poor uptime

https://evanhahn.com/in-defense-of-githubs-poor-uptime/
3•ingve•6m ago•0 comments

Viktor Orbán Could Lose

https://www.theatlantic.com/politics/2026/04/viktor-orban-hungary-election-magyar/686732/
1•JumpCrisscross•6m ago•0 comments

OMLX – LLM inference, optimized for your Mac

https://omlx.ai
1•wrxd•7m ago•0 comments

Tesla FSD Supervised approved in Netherlands with more EU countries to follow

https://twitter.com/i/status/2042709396111724639
1•denysvitali•8m ago•0 comments

Stop making AI write JSON – Why we built OpenUI

https://www.openui.com/blog/stop-making-ai-write-json
1•zahlekhan•9m ago•0 comments

Mighty: Hermite Spline-Based Efficient Trajectory Planning

https://github.com/mit-acl/mighty
1•aanet•10m ago•1 comments

Guitar Tuning Nightmares Explained

https://www.endino.com/archive/tuningnightmares.html
2•cainxinth•10m ago•0 comments

Red States Are Driving America's Solar Boom Despite Trump's Opposition

https://oilprice.com/Energy/Energy-General/Red-States-Are-Driving-Americas-Solar-Boom-Despite-Tru...
3•PaulHoule•13m ago•0 comments

Who Contributed to DataFusion 53

https://theconsensus.dev/p/2026/04/03/who-contributed-to-datafusion-53.html
1•ibobev•14m ago•0 comments

Mind Chess

https://www.eblong.com/zarf/essays/mindgame.html
1•goekjclo•14m ago•0 comments

Sigbovik 2026 Livestream (5pm ET)

https://www.youtube.com/watch?v=JazxeftHDwY
1•nickwanninger•14m ago•0 comments

TheySeeYourPhotos

https://theyseeyourphotos.com/
1•leot•14m ago•0 comments

Molotov cocktail attack at OpenAI CEO Sam Altman's home

https://www.reuters.com/world/us/suspect-arrested-after-molotov-cocktail-attack-openai-ceo-sam-al...
3•helloplanets•16m ago•0 comments

Ask HN: Recommendations on which models to pay how much for?

1•travisgriggs•16m ago•0 comments

Show HN: DecisionNode – shared structured memory for all AI coding tools via MCP

https://github.com/decisionnode/DecisionNode
17•AmmarSaleh50•20m ago•4 comments

Beyond Copy-and-Paste: How Game Studios Are Reorganizing Around AI (Research)

https://gail.wharton.upenn.edu/research-and-insights/beyond-copy-paste/
2•pella•20m ago•0 comments

Climbing the infinite ladder of abstraction (2016)

https://lexi-lambda.github.io/blog/2016/08/11/climbing-the-infinite-ladder-of-abstraction/
1•ibobev•21m ago•0 comments

I automated most of my job

https://www.reddit.com/r/ClaudeAI/s/YN1Qggjr87
3•nerdix•21m ago•0 comments

Meta pulls ads aimed at recruiting plaintiffs for social media lawsuits

https://www.reuters.com/sustainability/society-equity/meta-pulls-ads-aimed-recruiting-plaintiffs-...
2•1vuio0pswjnm7•22m ago•1 comments

AI trained like a Rubik's Cube solver simplifies particle physics equations

https://phys.org/news/2026-04-ai-rubik-cube-solver-particle.html
1•amichail•24m ago•0 comments

Choosing a Programming Language (2016)

https://thesquareplanet.com/blog/choosing-a-programming-language/
1•ibobev•24m ago•0 comments

Ads in AI Chatbots? An Analysis of How LLMs Navigate Conflicts of Interest

https://arxiv.org/abs/2604.08525
2•StatsAreFun•26m ago•0 comments