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•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/

NextEra and Dominion in talks over tie-up to create $400B US utility giant

https://www.ft.com/content/37ba1609-ffa7-42ae-b63c-b2c628c584e1
1•JumpCrisscross•3m ago•0 comments

Sequence Points (2010)

https://susam.net/sequence-points.html
1•susam•3m ago•0 comments

Infrasound likely a key factor in alleged hauntings

https://arstechnica.com/science/2026/04/that-spooky-sensation-likely-due-to-rumbling-pipes-not-sp...
1•austinallegro•3m ago•0 comments

In Defense of Software Businesses

https://aimode.substack.com/p/in-defense-of-software-businesses
1•warthog•5m ago•0 comments

China wants more robots but not fewer workers

https://www.economist.com/finance-and-economics/2026/05/11/china-wants-more-robots-but-not-fewer-...
1•marojejian•6m ago•1 comments

Spontaneous Human Combustion over the Ages

https://www.fatemag.com/post/spontaneous-human-combustion-over-the-ages
1•austinallegro•10m ago•1 comments

APL Performance

https://aplwiki.com/wiki/Performance
1•tosh•14m ago•0 comments

You can't whisper at an AI agent

https://stripe.dev/blog/ai-steering-experiments
1•logickkk1•14m ago•0 comments

The vibes in SF feel frenetic – The divide in outcomes is massive

https://twitter.com/deedydas/status/2055491938464489888
2•spenvo•14m ago•0 comments

Polymarket Isn't a Prediction Market for the Real World

https://reticulating.substack.com/p/polymarket-isnt-a-prediction-market
2•fontain•19m ago•0 comments

Mike Stonebraker: Computer Science might not be a growth industry going forward

https://www.youtube.com/watch?v=YPObBOwIrHk
1•tcp_handshaker•20m ago•1 comments

Texas county passes 1-year data center construction ban

https://www.politico.com/news/2026/05/16/texas-county-data-center-construction-ban-00922493
3•cdrnsf•22m ago•0 comments

Beaver: An Enterprise Benchmark for Text-to-SQL

https://peterbaile.github.io/beaver/
1•tcp_handshaker•23m ago•0 comments

Rx Inspector: Look Up Where Your Generic Prescription Drugs Were Made

https://projects.propublica.org/rx-inspector/
3•turtleyacht•29m ago•0 comments

The 48-Hour Cancer Binder

https://ludocomito.dev/blog/48-hour-cancer-binder/
2•ludocomito•31m ago•0 comments

Palace-AI – memory palace for AI agents

https://github.com/RhyChaw/palace-ai
3•RhythmC•32m ago•0 comments

A Note On Distributed Computing (1994)[pdf]

https://waldo.scholars.harvard.edu/sites/g/files/omnuum6261/files/waldo/files/waldo-94.pdf
2•ai_critic•42m ago•0 comments

The clean-up cost of AI code is what the velocity narrative leaves out

https://webflow.com/blog/cleanup-cost-ai-generated-code
4•dxs•42m ago•0 comments

Halt and Catch Fire

https://unstack.io/halt-and-catch-fire
4•ScottWRobinson•46m ago•0 comments

Tata Electronics(India) and ASML(Netherlands) Announce Strategic Partnership

https://www.asml.com/en/news/press-releases/2026/tata-electronics-and-asml-announce-strategic-par...
4•saharshpruthi•48m ago•1 comments

As Russian drones hunt Ukrainians in 'human Safari,' a boy fought back

https://www.washingtonpost.com/world/2026/05/15/russian-drones-hunt-ukrainians-human-safari-boy-f...
5•Stratoscope•48m ago•1 comments

Thousands todo apps, but none allows one-click collaboration with my grandma

https://medium.com/@tombarys/dotolist-creating-a-one-click-team-065a18dbeccd
3•tombarys•50m ago•1 comments

Elevated error rates on requests to multiple models

https://status.claude.com/incidents/v9s6d0jt84hj
9•recroad•50m ago•2 comments

Show HN: Daily vibe-coding video games, day 33: Tower Defense (single prompt)

https://gamevibe.us/33-tower-defense
4•pzxc•51m ago•0 comments

CC: Anthropic API Error: 500 Internal Server Error

https://github.com/anthropics/claude-code/issues/59743
5•brenoRibeiro706•53m ago•1 comments

Nvidia Preparing RTX 5090 Price Increase Due to Rising GDDR7 Memory Costs

https://mp1st.com/news/nvidia-preparing-rtx-5090-price-increase
3•jeffufl•53m ago•0 comments

Feeds: A Minimal RSS Aggregator and Client

https://stevedylan.dev/posts/feeds/
3•speckx•55m ago•0 comments

Malta gives citizens a paid version of ChatGPT Plus for free

https://ranked.news/malta-gives-citizens-a-paid-version-of-chatgpt-plus-for-free
2•doener•57m ago•0 comments

I 3D Printed Origami [video]

https://www.youtube.com/watch?v=FNVBK7-h9Fs
7•Teever•59m ago•1 comments

Haiku boots to desktop on an M1 MacBook Air

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044?page=2
3•calgarymicro•1h ago•1 comments