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/

The Pentagon and AI Giants Have a Weakness. Both Need China's Batteries, Badly

https://www.nytimes.com/2025/12/23/climate/pentagon-weapons-ai-artificial-intelligence-china-batt...
1•mikhael•11s ago•0 comments

Light yet strong material inspired by egg whites can cool devices faster

https://techxplore.com/news/2025-12-strong-material-egg-whites-cool.html
1•PaulHoule•2m ago•0 comments

The Case Against Travel

https://www.newyorker.com/culture/the-weekend-essay/the-case-against-travel
1•popol12•3m ago•0 comments

Unix V4 Tape from University of Utah

https://archive.org/details/utah_unix_v4_raw
2•belter•4m ago•0 comments

Gut bacteria may play role in bipolar depression by directly influencing brain

https://medicalxpress.com/news/2025-12-gut-bacteria-play-role-bipolar.html
1•WaitWaitWha•4m ago•0 comments

The laws of physics imply AI is possible. What is the holdup? (2012)

https://aeon.co/essays/how-close-are-we-to-creating-artificial-intelligence
1•mooreds•4m ago•0 comments

Aircraft Graveyard

https://en.wikipedia.org/wiki/Aircraft_graveyard
1•thunderbong•4m ago•0 comments

GitHub PR with council of review bots

https://github.com/aidenybai/react-grab/pull/87
1•Alifatisk•4m ago•0 comments

Log Structured Merge Trees (2015)

http://www.benstopford.com/2015/02/14/log-structured-merge-trees/
1•whatisabcdefgh•6m ago•0 comments

Agent-swarm: How to burn your Claude Code Max sub

https://github.com/desplega-ai/agent-swarm
1•tarasyarema•7m ago•1 comments

Alphabet to buy data center infrastructure firm Intersect in $4.75B deal

https://www.reuters.com/technology/alphabet-buy-data-center-infrastructure-firm-intersect-475-bil...
1•kaycebasques•10m ago•1 comments

Meta Is Using the Linux Scheduler Designed for Valve's Steam Deck on Its Servers

https://www.phoronix.com/news/Meta-SCX-LAVD-Steam-Deck-Server
6•yellow_lead•13m ago•0 comments

Intervention Leads to Immigration

https://www.compactmag.com/article/intervention-leads-to-immigration/
2•karakoram•15m ago•0 comments

Apple to Allow Alternative App Stores and More on iOS in Brazil by April

https://www.macrumors.com/2025/12/23/ios-alternative-app-stores-brazil/
2•tosh•16m ago•0 comments

Your Year with ChatGPT

https://help.openai.com/en/articles/20001042-your-year-with-chatgpt-faqs
1•meonkeys•20m ago•0 comments

Affordances Are Inconceivable

https://taylor.town/no-affordance
1•surprisetalk•20m ago•0 comments

Nvidia's Quest for a "Safe" Linux Kernel

https://www.phoronix.com/news/NVIDIA-ASIL-B-Linux-Kernel
3•stevenjgarner•21m ago•0 comments

Show HN: "What Should I Build?" A directory of what people want

https://www.whatshouldibuild.online/
1•emil154•23m ago•0 comments

Why are we accepting silent data corruption in Vector Search? (x86 vs. ARM)

1•varshith17•24m ago•1 comments

Ask HN: Mods Override Flags?

1•silexia•25m ago•3 comments

Docker Hub Is Down

https://www.dockerstatus.com/pages/incident/533c6539221ae15e3f000031/694a5952c2973e051077227c
1•s_ting765•25m ago•0 comments

Cellebrite

https://en.wikipedia.org/wiki/Cellebrite
3•embedding-shape•26m ago•0 comments

A Demonstrably Correct Compiler (1991) [pdf]

https://www-users.york.ac.uk/~ss44/bib/ss/swe/paper.pdf
1•ravenical•26m ago•0 comments

Beautiful confirmation dialogs (with zero JavaScript)

https://boringrails.com/articles/data-turbo-confirm-beautiful-dialog/
1•Kerrick•27m ago•0 comments

Launch of International Well-Being Study for Digital Forensic Investigators

https://www.forensicfocus.com/news/forensic-focus-and-northumbria-university-launch-international...
1•WaitWaitWha•29m ago•1 comments

What the Linux desktop needs to challenge Windows

https://www.theregister.com/2025/12/22/what_linux_desktop_really_needs/
2•pjmlp•31m ago•0 comments

Why am I more productive late at night?

https://www.humaninvariant.com/blog/night-work
1•paulpauper•32m ago•0 comments

Can we make America feel more affordable?

https://www.noahpinion.blog/p/can-we-make-america-feel-more-affordable
1•paulpauper•33m ago•0 comments

The Generation Is the Book Parents Have Been Asking For

https://www.afterbabel.com/p/the-amazing-generation-is-the-book
1•paulpauper•33m ago•0 comments

Patience and Impatience

https://medium.com/@nftechie/patience-and-impatience-e44b9557422a
1•awormuth•35m ago•0 comments