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•7mo ago

Comments

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

Find food that fits your vibe

https://vibeeats.app
1•payanai•1m ago•0 comments

Why are we curious about some things and indifferent to others?

https://psyche.co/ideas/why-are-we-curious-about-some-things-and-indifferent-to-others
1•rramadass•3m ago•0 comments

Notes on Motivation

https://jeremyjaydan.au/notes-on-motivation/
2•JeremyJaydan•14m ago•0 comments

A mutually incomprehensible AI communication system

https://www.hackster.io/misetteichan/a-mutually-incomprehensible-ai-conversation-system-ffd922
1•anigbrowl•14m ago•0 comments

How Cargo Ships Navigate the World’s Most Treacherous Bay

https://www.youtube.com/watch?v=b7aTdnu-GXc
1•alexchantavy•15m ago•0 comments

The state of enterprise AI [pdf]

https://cdn.openai.com/pdf/7ef17d82-96bf-4dd1-9df2-228f7f377a29/the-state-of-enterprise-ai_2025-r...
1•gmays•18m ago•0 comments

What's the real bottleneck behind the GLP-1 boom: science capacity or incentives

1•d_e_solomon•19m ago•0 comments

Libxml2 Officially Unmaintained

https://gitlab.gnome.org/GNOME/libxml2/-/commit/9c80a89af2fdf4f853892f84e46580f4902658ba
2•rebelwebmaster•21m ago•0 comments

Show HN: Mapstore-go files-backed store with pluggable serialization/encrypt/fts

https://github.com/ppipada/mapstore-go
1•ppipada•21m ago•0 comments

DynamicLink - https://github.com/tinyhref/dynamic-link

2•tinyhref•27m ago•0 comments

The OG Immersion Method

https://www.dreaming.com/blog-posts/the-og-immersion-method
1•carabiner•28m ago•0 comments

Disagreements over post-quantum encryption for TLS

https://lwn.net/SubscriberLink/1048978/c1437060685f8214/
2•todsacerdoti•31m ago•0 comments

Show HN: PyAtlas – Interactive map of the most popular Python packages on PyPI

https://pyatlas.io
1•flo12392•34m ago•0 comments

Reddit Partially Down

https://www.redditstatus.com
2•mendyberger•36m ago•2 comments

Show HN: DSPydantic - Auto-Optimize Your Pydantic Models with DSPy

https://github.com/davidberenstein1957/dspydantic
1•dberenstein1957•37m ago•0 comments

Optique 0.8.0: Conditional parsing, pass-through options, and LogTape integrati

https://hackers.pub/@hongminhee/2025/optique-080
1•todsacerdoti•47m ago•0 comments

Modern Cassette Walkmans

https://walkman.land/modern
47•classichasclass•48m ago•8 comments

Investor letter reveals skyrocketing growth of Waymo's robotaxi rides

https://techcrunch.com/2025/12/08/investor-letter-reveals-skyrocketing-growth-of-waymos-robotaxi-...
4•ryan_j_naughton•51m ago•0 comments

IBM RT PC – RISC, μkernel, virtualization (AIX guest), and X in 1986

https://en.wikipedia.org/wiki/IBM_RT_PC
2•burnt-resistor•51m ago•1 comments

Why an internet of anonymous and psychopath accounts tends towards nihilism

https://twitter.com/EricRWeinstein/status/1998228492518101080
2•keepamovin•55m ago•1 comments

Nvidia isn't enron so what is it

https://www.wheresyoured.at/nvidia-isnt-enron-so-what-is-it/
3•enchanted-gian•55m ago•1 comments

Tell HN: Is Reddit Down?

5•theanonymousone•56m ago•7 comments

New law to ban social media apps for under-16s in Australia

https://www.ft.com/content/e93ab2b2-868f-441f-bbec-0af4fa3edeb5
1•throwaway2037•1h ago•0 comments

Ambition

https://andys.blog/ambition/
1•andytratt•1h ago•0 comments

Gauge Your ZLevel

https://andys.blog/zlevel/
1•andytratt•1h ago•0 comments

Tensor Logic Language [pdf]

https://homes.cs.washington.edu/~pedrod/tls.pdf
2•robot-wrangler•1h ago•0 comments

Show HN: Claude Code Knowledge graphs auto-generated from conversations

https://github.com/Zabaca/temporal-bridge
1•uptownhr•1h ago•0 comments

Breakthrough DNA repair drug could heal tissue damage

https://newatlas.com/heart-disease/drug-dna-repair-heart/
2•thunderbong•1h ago•1 comments

Building a data platform for Michigan's tech ecosystem

https://michigan-pulse.com/
1•sieep•1h ago•0 comments

Crown Vics with 10-Speed Swaps? This Shop Says It's the Future

https://www.thedrive.com/news/crown-vics-with-10-speed-swaps-this-shop-says-its-the-future
3•PaulHoule•1h ago•1 comments