frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y 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•1y 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•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y 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•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

AWS Well-Architected Agent, an AI-powered intelligence to optimize your cloud

https://aws.amazon.com/blogs/aws/announcing-aws-well-architected-agent-an-ai-powered-intelligence...
1•ibrahimcesar•1m ago•0 comments

How Padel Works

https://smashpadel.org/how-padel-works
1•lauriswtf•4m ago•0 comments

Why Muse May Never Need Ads

https://www.mbi-deepdives.com/no-ads-muse/
1•snikolaev•5m ago•0 comments

Explore Manticore Data with OpenSearch Dashboards

https://manticoresearch.com/blog/manticore-opensearch-dashboards-integration/
1•GloVin•9m ago•0 comments

Ask HN: What skills has AI taught you?

1•amelius•9m ago•0 comments

BlazePDF – Free Benchmark-driven Rust PDF reader, CLI and desktop viewport

https://github.com/marksmayo/Blazepdf
1•beatthatflight•10m ago•0 comments

Ben Affleck on AI and Hollywood Economics [video]

https://www.youtube.com/watch?v=vpV2AWxjIUo
1•mxfh•16m ago•0 comments

The Boudican revolt of AD 60-61

https://en.wikipedia.org/wiki/Boudican_revolt
1•countrymile•19m ago•0 comments

Android Nagios Client

https://github.com/samm-git/nocview
1•samm_cz•25m ago•1 comments

Absolute s–t: EU's Microsoft Teams alternative draws bad reviews from officials

https://www.politico.eu/article/eu-microsoft-teams-alternative-bad-reviews-element-pro/
1•tosh•26m ago•0 comments

Trump renaming AI to SI is making his wife's home country a little richer

https://www.neowin.net/news/trump-renaming-ai-to-super-intelligence-is-making-his-wifes-home-coun...
5•bundie•27m ago•0 comments

What Trump Has Built

https://time.com/article/2026/10/01/donald-trump-2026-interview/
1•hggh•27m ago•1 comments

Agentic Runtime: Python Startup Time and Import Optimization (4s –> 2s)

https://enjii.pages.dev/blog/Optimizations/vex_startup_time_optimization/
1•enji_86•28m ago•0 comments

Below Intent: The Semantic Infrastructure of Agentic Software Engineering

https://enogrob.github.io/artificial-intelligence/software-engineering/architecture/ruby/2026/10/...
1•enogrob•30m ago•1 comments

Capcom RE:Dox, open source serialization/deserialization for game engines

https://github.com/CAPCOM-TD-OSS/REDox
3•vblanco•36m ago•0 comments

Tell HN: OVH price increase for dedicated servers

1•esher•39m ago•1 comments

Teufelsberg (2015)

https://blog.patternsinthevoid.net/teufelsberg.html
1•wmchen•42m ago•0 comments

Vim as a filebrowser (Modern NetRW setup)

https://3hy.online/post/10
1•3hy•47m ago•2 comments

Woman loses 20 years of 'digital memories' after Meta deletes her accounts

https://www.techradar.com/computing/social-media/it-feels-almost-sick-to-me-meta-deleted-20-years...
5•bundie•49m ago•1 comments

Daytona.com domain was bought for half a million dollars

https://twitter.com/ivanburazin/status/2105762936081801254
1•taubek•49m ago•0 comments

Show HN: Kronumos-Neurosymbolic code repair with a 5µs Rust Sub-Cortex

https://zenodo.org/records/23013104
1•automaticallyfl•52m ago•0 comments

Freediving Data Viz

https://www.matsiutsia.com/one-breath-dive
1•greenpinia•53m ago•0 comments

Happy 30th Birthday to Squeak!

https://news.squeak.org/2026/10/01/happy-30th-birthday-to-squeak/
2•pjmlp•54m ago•0 comments

Show HN: Hops Run: beat Semif (open Jev) and Kumo (Nvidia) in a procedural game

https://game.hopsworks.ai/
1•LexSiga•58m ago•0 comments

Cars Are Sharing Data with Big Tech Companies, Study Finds

https://www.consumerreports.org/electronics/personal-information/your-car-is-sharing-data-with-bi...
1•mdp2021•1h ago•0 comments

Show HN: Audionaut – an open-source cross-platform multitrack audio editor

https://github.com/kvoltmer/Audionaut
2•vltmrkls•1h ago•1 comments

French Secondary Schools Burn

https://www.irishtimes.com/world/europe/2026/10/02/french-secondary-schools-burn-as-student-unres...
1•flanked-evergl•1h ago•3 comments

I opened cockpit door while being attacked, says pilot of Dubai-Israel flight

https://www.bbc.com/news/articles/c639m98gde00o
1•rmason•1h ago•1 comments

VidCadence – Short videos that write, voice and post themselves

https://vidcadence.com
1•smati_muneeb•1h ago•0 comments

IFC OK – IFC viewer online

https://ifcok.com
1•eddieweng•1h ago•0 comments