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/

Why Brilliant Mathematicians Choose Coding over Research and Where This May Lead

https://zenodo.org/records/21673213
1•epyre•1m ago•0 comments

Tree Style Tab

https://addons.mozilla.org/en-US/firefox/addon/tree-style-tab/
1•Velocifyer•1m ago•0 comments

Topical – A C# event handling library with strong async/await support

https://github.com/MonoSolid/topical
1•nathan-hello•2m ago•0 comments

Singer-songwriter Glen Hansard dies in Dublin crash

https://www.rte.ie/news/ireland/2026/0729/1585555-dublin-crash/
1•austinallegro•6m ago•0 comments

Anidachi – a shapeshifting new digital companion

https://anidachi.com
2•jjmccoolguy•8m ago•1 comments

Now Recruiting: Pirate

https://ae.studio/jobs/pirate
1•ksk23•8m ago•1 comments

Halcyon Dawn

https://madgoatlabs.com/halcyondawn/
1•hvs•10m ago•0 comments

They Stole Your Attention

https://moai.studio/blog/posts/they-stole-your-attention.html
1•ionwake•10m ago•0 comments

Microsoft Struggling with AI-Discovered Security Bugs

https://www.propublica.org/article/anthropic-mythos-microsoft-software-vulnerabilities
2•tysone•15m ago•0 comments

Advancing Science by Designing for Surprise

https://www.science.org/doi/10.1126/science.aej4257
1•paraschopra•16m ago•0 comments

Parsers don't have to be complicated

https://bkaradzic.github.io/posts/scanner/
1•signa11•22m ago•0 comments

The Groundhog Trap – Multi-model consensus and AI output failover framework

https://github.com/RickyARojas/The-Groundhog-Trap
1•rarojas•24m ago•0 comments

LLMs and Shaders

https://amitp.blogspot.com/2026/07/llms-and-shaders.html
1•yurivish•24m ago•0 comments

Parse Italian CEE balance sheets into structured financial data in 30s

https://www.parsio.it/
1•Iry-star•26m ago•0 comments

Hierarchical File Systems are Dead (2009)

https://dash.harvard.edu/server/api/core/bitstreams/7312037c-92e6-6bd4-e053-0100007fdf3b/content
1•Tomte•27m ago•0 comments

Designing Balanced Dice

https://blog.colonist.io/balanced-dice-designing/
1•kamphey•30m ago•0 comments

KOReader

https://koreader.rocks/
3•Cider9986•33m ago•0 comments

RazTint: Semantic terminal output for Python CLIs

https://github.com/razbuild/raztint
1•realrazdev•34m ago•0 comments

An Ode to Deluxe Paint

https://www.datagubbe.se/dpaint/
1•Bluestein•35m ago•0 comments

Show HN: Easy MQTT Handler 2: multi platform desktop tray to Home Assistant glue

https://github.com/AtmanActive/easy-mqtt-handler-2
2•atmanactive•36m ago•1 comments

The AI Hype Index: Unsexy AI

https://www.technologyreview.com/2026/07/29/1140795/the-ai-hype-index-unsexy-ai/
2•joozio•37m ago•0 comments

Starling: The first real desktop written by AI

https://starling.build/
4•signa11•38m ago•1 comments

We Hardened an AI Security Platform Against 16 Critical Vulnerabilities

https://aegis-security.higgsfield.app
3•zdotbirch•42m ago•0 comments

Zoye AI – The CRM you don't need to open

https://www.zoye.io
3•anizeu•43m ago•0 comments

Regulation of tobacco by the U.S. Food and Drug Administration

https://en.wikipedia.org/wiki/Regulation_of_tobacco_by_the_U.S._Food_and_Drug_Administration
2•amarcheschi•44m ago•0 comments

Show HN: I used D3/React to transform raw GitHub data into an interactive map

https://github.com/ThierryRakotomanana/GitCharta
3•ThierryRakt•44m ago•0 comments

The Vanishing Page: AI Firms Scan Then Destroy Rare Book Editions

https://dallasexpress.com/national/the-vanishing-page-ai-firms-scan-then-destroy-rare-book-editions/
3•throw0101a•44m ago•0 comments

AI companies buy, scan, shred rare and out-of-print books

https://www.news.com.au/technology/online/internet/ai-labs-buy-scan-shred-millions-of-rare-books/...
3•throw0101a•45m ago•0 comments

History remembers two Robert McNamaras

https://indevelopmentmag.com/numbers-man/
3•salonium_•46m ago•0 comments

National Security Determination Threat Posed by Foreign-Produced Robotic Devices [pdf]

https://www.fcc.gov/sites/default/files/robots-nsd.pdf
23•ellingsworth•50m ago•7 comments