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 Quest to Identify a Westerner Called 'The Most Famous Face in China' (2022)

https://www.wsj.com/world/china/the-quest-to-identify-a-westerner-called-the-most-famous-face-in-...
1•acqbu•1m ago•1 comments

Show HN: Interactive Simulator of Government Spending vs. Economic Growth

https://julienreszka.github.io/economic-simulator/armey-curve.html
1•julienreszka•3m ago•0 comments

X for AI Agents

https://twitter.com/benswerd/status/2043402405656789254
1•benswerd•4m ago•0 comments

Better MoE model inference with warp decode

https://cursor.com/blog/warp-decode
1•gmays•6m ago•0 comments

Europe forgets its bug hunters at its own peril

https://bindinghook.com/europe-forgets-its-bug-hunters-at-its-own-peril/
1•mooreds•7m ago•0 comments

Argentina Graph of the Day: Starlink Connects People

https://www.cato.org/blog/argentina-graph-day-starlink-connects-millions-people
1•mooreds•7m ago•0 comments

What Lies Behind the U.S. Trade Battle for Control over Data

https://www.michaelgeist.ca/2026/04/heads-they-win-tails-we-lose-what-lies-behind-the-u-s-trade-b...
1•mooreds•8m ago•0 comments

Show HN: Buildermark – See how much code is by your agents (open source, local)

https://buildermark.dev
1•davidcann•8m ago•0 comments

Digging deeper on how tillage methods affect soil health, yield

https://www.news.iastate.edu/news/digging-deeper-how-tillage-methods-affect-soil-health-yield
1•gnabgib•9m ago•0 comments

China lures home its top AI talent from Silicon Valley

https://www.ft.com/content/b167c6d3-b982-482a-98c3-5303a7b80c6a
2•macleginn•10m ago•1 comments

New vehicles now sell for an average of nearly $50k

https://www.pbs.org/newshour/economy/new-vehicles-now-sell-for-an-average-of-nearly-50000
1•loughnane•10m ago•0 comments

LaunchHQ: Pre-launch platform with referral loops and automated launch day

https://launchhq.space
1•SavitP•13m ago•1 comments

The race to train AI robots

https://www.latimes.com/business/story/2025-11-02/inside-californias-rush-to-gather-human-data-fo...
2•ninjagoo•13m ago•1 comments

Horizontally scaling localhost for worktrees (FOSS)

https://coasts.dev/blog/introducing-remote-coasts
1•jsunderland323•13m ago•0 comments

How the hypercuriosity of ADHD may have helped humans thrive

https://aeon.co/essays/how-the-hypercuriosity-of-adhd-may-have-helped-humans-thrive
2•gmays•14m ago•0 comments

London police arrest 523 people at protest over Palestine Action ban

https://www.reuters.com/world/uk/london-police-arrest-212-people-protest-over-palestine-action-ba...
4•abdelhousni•16m ago•1 comments

CMake Pursuing Tighter Integration with Package Managers, Other Improvements

https://www.phoronix.com/news/CMake-Tighter-Package-Integrate
2•birdculture•17m ago•0 comments

I built a tool that checks if AI recommends your brand when buyers ask questions

https://aishareofvoice.ai
3•AISupportTeam•17m ago•0 comments

Show HN: Prediction game where AI copies of people earn and replicate

2•tormine1•20m ago•0 comments

Failing Tests Are All You Need

https://calebfenton.substack.com/p/failing-tests-are-all-you-need
2•calebfenton•22m ago•1 comments

LHCb Collaboration discovers new proton-like particle

https://home.cern/news/news/physics/lhcb-collaboration-discovers-new-proton-particle
2•PaulHoule•22m ago•0 comments

Show HN: I made a Browser game with physics

3•gray_wolf_99•22m ago•0 comments

Bringing Observability to Your N8n Workflows: OpenTelemetry in Action

https://signoz.io/blog/n8n-monitoring-with-opentelemetry/
3•gkarthi2800•23m ago•1 comments

Show HN: Carving Music from the Sound Manifold

https://www.youtube.com/watch?v=GbKd_BMoz2I
3•ersinesen•25m ago•0 comments

How to foster critical thinking for teens in an online world

https://www.rnz.co.nz/life/relationships/family/how-to-foster-critical-thinking-for-teens-in-an-o...
6•billybuckwheat•30m ago•0 comments

Firefox 149 vs. Chrome 147 Web Browser Performance on Linux

https://www.phoronix.com/review/firefox-chrome-2026
3•sharjeelsayed•31m ago•0 comments

Zed, A sans for the needs of 21st century

https://www.typotheque.com/blog/zed-a-sans-for-the-needs-of-21century
3•yurivish•32m ago•0 comments

Git Town

https://github.com/git-town/git-town
2•saikatsg•33m ago•0 comments

Zed – A Font Superfamily

https://daringfireball.net/linked/2026/04/12/zed-font-superfamily
2•yurivish•33m ago•0 comments

Designing a system that uses location without tracking users

https://github.com/MTeef/hadak
2•mteef•34m ago•0 comments