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/

Y'all Street is here: The Texas Stock Exchange opens for trading

https://texasstandard.org/stories/texas-stock-exchange-dallas-launch/
1•kumarski•54s ago•0 comments

Lawsuit claims Meta's layoff decisions were made by AI, not humans

https://arstechnica.com/tech-policy/2026/07/lawsuit-claims-metas-layoff-decisions-were-made-by-ai...
1•mpfect•2m ago•0 comments

Can You Drill into a Supervolcano to Relieve Pressure? (2016)

http://askageologist.blogspot.com/2016/03/can-you-drill-into-supervolcano-to.html
1•downbad_•2m ago•0 comments

GPT-5.6-terra used 48.5% more context than Mimo-2.5-pro

https://dirac.run/posts/gpt-5-6-vs-mimo-2-5-pro-context-bloat-comparison
1•GodelNumbering•3m ago•0 comments

Build an AI Price Quote Phone Agent Real-Time Custom Quotes with Telnyx Voice AI

https://lowlatencyclub.ai/blog/posts/ai-price-quote-phone-agent-python
1•harpreetseehra•4m ago•0 comments

Show HN: Worldreleasenotes.com/Countries

https://worldreleasenotes.com/countries
1•sbcom•6m ago•0 comments

Swiss Army Breaks with Microsoft: "Cyber Command" Relies on Open Source

https://www.heise.de/en/news/Swiss-Army-breaks-with-Microsoft-Cyber-Command-relies-on-Open-Source...
1•_____k•6m ago•0 comments

The PDF, or How a Useful Idea Became Everybody Else's Problem

https://tomatovillain.substack.com/p/the-pdf-or-how-a-useful-idea-became
1•tom-villani•7m ago•0 comments

We can expect more from small apps

https://joshapproved.com/writing/simple-tools-got-worse/
1•joshawash•9m ago•2 comments

Chinese Codex API Resellers Have a New Problem

https://www.vincentschmalbach.com/chinese-codex-api-resellers-problem/
1•vincent_s•10m ago•0 comments

Show HN: Mozdmp – Firefox profile decryption tool and master password cracker

https://github.com/asaix/mozdmp
1•asaix•11m ago•0 comments

Chamath Palihapitiya says soaring AI token spend will hit companies' earnings

https://www.cnbc.com/2026/07/14/chamath-palihapitiya-ai-tokenmaxxing.html
1•1vuio0pswjnm7•12m ago•0 comments

Facebook's desktop web page leaks multiple GB of memory

https://bek-kurbonov.com/posts/facebook-crash-meta-ai-rush/
1•advenn•12m ago•0 comments

Show HN: Leet Robotics: Learn robotics and ROS2 with hands-on courses

https://www.leetrobotics.com
2•deepresearch•13m ago•0 comments

I Configure the Ryzen AI Halo (Strix Halo) for 10-15% Faster Local Inference [video]

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

Musk: We will make the codebase of X open source, no exceptions

https://twitter.com/i/status/2077361679034118271
1•bko•13m ago•0 comments

Aliens: Explaining LLMs and AI agents to my children

https://archive.org/details/aliens_202607
1•onetokenatatime•13m ago•1 comments

Richard Feynman and the Connection Machine

https://longnow.org/ideas/richard-feynman-and-the-connection-machine/
1•yankcrime•14m ago•1 comments

Toronto now has the worst air quality in the world among major cities

https://www.iqair.com/ca/world-air-quality-ranking
1•amichail•14m ago•0 comments

Does disposable or temp accounts hurt the business of SaaS or app? How?

2•YPANDAR•15m ago•2 comments

New York becomes first U.S. state to impose AI data center ban

https://www.cnbc.com/2026/07/14/new-york-ai-data-center-ban.html
2•1vuio0pswjnm7•16m ago•0 comments

Cterm – The Smallest Terminal Emulator

https://github.com/uint23/cterm
1•uint23•16m ago•1 comments

Microsoft Entra ID Will Retire SMS and Voice Authentication

https://lazyadmin.nl/office-365/microsoft-entra-entra-sms-voice-retirement/
1•speckx•17m ago•0 comments

Current, former employees sue Meta re: discrimination via AI to conduct layoffs

https://www.cnbc.com/2026/07/14/meta-lawsuit-layoffs-ai.html
2•1vuio0pswjnm7•18m ago•0 comments

Dally – a privacy focused daily routine app

https://apps.apple.com/us/app/dally-365/id6772557608
4•totaldude87•19m ago•0 comments

Panasonic's PV-460 Camcorder Stabilized Shaky Videos

https://spectrum.ieee.org/panasonic-camcorder-ieee-milstone
1•sohkamyung•19m ago•0 comments

The Death of Documentary Evidence

https://govintegrity.substack.com/p/the-death-of-documentary-evidence
2•apwheele•20m ago•0 comments

Show HN: LoopGain – Stop agent loops with control theory, not max_iterations

https://github.com/loopgain-ai/loopgain
4•fitz2882•20m ago•0 comments

Show HN: SSO Zen

https://github.com/CloudSnorkel/sso-zen
1•kichik•23m ago•0 comments

Google Search's AI Overviews and AI Mode pose an "unacceptable risk" to children

https://www.axios.com/2026/07/15/googles-ai-search-common-sense-child-safety
2•giuliomagnifico•24m ago•0 comments