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/

Three Myths on the Chinese Economy

https://zixuanma.blog/p/three-myths-on-the-chinese-economy
1•surprisetalk•13s ago•0 comments

Show NH: FreqWave EQ – An 8-band parametric audio equalizer for browsers

https://chromewebstore.google.com/detail/freqwave-eq/emikokoknlgeiloipjheoafjjeoicjap
1•borislav_gn•1m ago•1 comments

Show HN: I built an AI that reads German real estate listings for buyers

https://immo-lens.com/?lang=en
1•martinvoelker•1m ago•0 comments

Path of Exile 2: Shaders and Device Removed Issues Fixed [video]

https://www.youtube.com/watch?v=XDEJLOHcdWw
1•James87211•2m ago•1 comments

We ensure agents leave feedback on our Docs

https://medusajs.com/blog/two-things-every-mcp-author-should-add/
1•amoopa•2m ago•0 comments

We track and4,400 technologies in 165 categories used on websites

https://www.wmtips.com/technologies/
1•theanonymousone•3m ago•0 comments

Europe gets ready to police frontier AI

https://www.theparliamentmagazine.eu/news/article/europe-gets-ready-to-police-frontier-ai
1•perelin•5m ago•0 comments

Cursor for iPad

https://cursor.com/changelog/ipad
1•slymax•7m ago•0 comments

Diffuse puffs of "missing" matter surround most galaxies

https://news.mit.edu/2026/missing-matter-diffuse-puffs-surround-most-galaxies-0721
1•speckx•8m ago•0 comments

Calibre – E-Book Management

https://calibre-ebook.com/
1•routeroff•9m ago•0 comments

WordPress and Drupal score almost identically, but fail in opposite directions

https://replatformradar.com/research/cms-migration-readiness-2026
1•replatformradar•9m ago•0 comments

"Cool" façades expected to reduce summer building temperature

https://www.aimplas.net/blog/cool-facades-expected-reduce-summer-building-temperatures/
1•JeanKage•9m ago•0 comments

Quil – drive AI coding sessions on a remote box over plain SSH

https://quil.cc/
1•artyomsv•9m ago•0 comments

Rogue AI Agents – Food for Agile Thought #555

https://age-of-product.com/food-agile-thought-555-rogue-ai-agents/
1•swolpers•10m ago•0 comments

My list of magic numbers (2020)

https://rachelbythebay.com/w/2020/11/26/magic/
1•theanonymousone•10m ago•0 comments

Study: Coding agents rarely retrieve open-source contribution rules

https://arxiv.org/abs/2607.26819
1•wek•12m ago•0 comments

Guardrails Hub – Guardrails AI

https://guardrailsai.com/hub
2•TangoBee•12m ago•0 comments

On Type Inference

https://radekmie.dev/blog/on-type-inference/
1•theanonymousone•16m ago•0 comments

1k True Fans (2008)

https://kk.org/thetechnium/1000-true-fans/
1•downbad_•19m ago•0 comments

Join Me in Jamverse

https://contraptions.venkateshrao.com/p/join-me-in-jamverse
1•surprisetalk•19m ago•0 comments

Tattoo is permanent, pain-free, and maybe delivered in the mail

https://www.theverge.com/tech/972466/cipherx-permanent-pain-free-tattoo-microdot-patches
2•JeanKage•21m ago•0 comments

High school axes plans to deploy AI robot called Sally after ties to sex dolls

https://www.dailymail.com/news/article-16017467/humanoid-robot-teacher-new-york-axes-plan.html
1•Bender•21m ago•0 comments

Its the Resolution for Ecommerce Shops:)

https://www.loomy.work
1•Omoll•22m ago•0 comments

EROSITA delivers the most comprehensive census of the high-energy Universe

https://www.mpe.mpg.de/8215311/news20260731
1•xioxox•23m ago•0 comments

DeepSeek-AI/DeepSeek-V4-Flash-0731

https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731
6•Philpax•24m ago•0 comments

NOAA ditches weather-predicting supercomputers for Google Cloud

https://www.theregister.com/hpc/2026/07/29/noaa-ditches-weather-predicting-supercomputers-for-goo...
2•Bender•26m ago•0 comments

Do High Temperatures Affect Firm Demography? Evidence from Italy

https://doi.org/10.1002/bse.71185
1•flinux•27m ago•0 comments

Max-severity Exchange server flaw under active exploitation by Kremlin hackers

https://arstechnica.com/security/2026/07/kremlin-hackers-are-exploiting-exchange-flaw-to-backdoor...
1•Bender•27m ago•0 comments

Amiga development system 1 (PRE A1000)

https://bigbookofamigahardware.com/bboah/product.aspx?id=2007
2•Bluestein•28m ago•0 comments

Ruby Central's Destructive Legacy

https://andre.arko.net/2026/07/30/ruby-centrals-destructive-legacy/
6•4d66ba06•29m ago•2 comments