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

Comments

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

Mega

https://www.megaporn.ws/
1•healthguru•2m ago•0 comments

Warren Parad on Software Engineering for High Availability [audio]

https://overcommitted.dev/building-bulletproof-systems-warren-parad-on-software-engineering-for-h...
1•mooreds•3m ago•0 comments

Ask HN: What ways will AI advance technically in the next ten years?

1•orenlindsey•4m ago•0 comments

What my journal doesn't say about my life

https://www.tsoon.com/posts/blank-quarters/
1•mooreds•4m ago•0 comments

Why scientists are nervous about fungi

https://text.npr.org/g-s1-117632
1•mooreds•4m ago•0 comments

Trump announces reforms to psychedelic drugs [video]

https://www.youtube.com/watch?v=4pr1d5tRLWc
1•keepamovin•5m ago•0 comments

Anthropic's Claude Mythos Launch Is Built on Misinformation

https://www.artificialintelligencemadesimple.com/p/anthropics-claude-mythos-launch-is
1•Toluhis•5m ago•0 comments

The curse of the gifted programmer (2000)

https://lwn.net/2000/0824/a/esr-sharing.php3
1•downbad_•7m ago•1 comments

Built an prep tool after getting rejected many times with nofeedback

https://portlumeai.com
1•portlumeai•7m ago•0 comments

Anna's Archive to pay $322M after losing court case for scraping from Spotify

https://www.nme.com/news/music/annas-archive-to-pay-322million-after-losing-court-case-for-scrapi...
1•thunderbong•9m ago•0 comments

SaaS apps are becoming coworkers, not toolboxes: JTBD shift behind SaaS design

https://metedata.substack.com/p/006-the-chat-bar-isnt-lazy-design
1•young_mete•14m ago•0 comments

Ask HN: Is it worth taking a year off?

1•thepaulthomson•15m ago•6 comments

Heavy Weather Hits Gotham City – Batman and Robin (1997)

https://theasc.com/magazine/july97/batman/main.htm
1•exvi•18m ago•0 comments

Voice actors fight to save their livelihoods from Hollywood's AI push

https://restofworld.org/2026/ai-voice-actors-hollywood-dubbing/
5•i7l•19m ago•0 comments

Extraterrestrial Escapades – Men in Black (1997)

https://theasc.com/magazine/june97/mib/main.htm
1•exvi•19m ago•0 comments

Chase, Crush and Devour – The Lost World: Jurassic Park (1997)

https://theasc.com/magazine/june97/lstwrld/main.htm
1•exvi•20m ago•0 comments

Spotify Silently Updates Itself (and How to Stop It)

https://duckass.bearblog.dev/how-spotify-silently-updates-itself-and-how-to-stop-it/
1•lschueller•21m ago•1 comments

The Mythos Threshold

https://joereis.substack.com/p/the-mythos-threshold
2•hodgesrm•21m ago•0 comments

Ask HN: Interesting Calculators?

1•wvlia5•22m ago•1 comments

Hackers are abusing unpatched Windows security flaws to hack into organizations

https://techcrunch.com/2026/04/17/hackers-are-abusing-unpatched-windows-security-flaws-to-hack-in...
1•Brajeshwar•22m ago•0 comments

Show HN: MDV – a Markdown superset for docs, dashboards, and slides with data

https://github.com/drasimwagan/mdv
2•drasim•24m ago•0 comments

Fuzix OS

https://www.fuzix.org/
3•DeathArrow•24m ago•0 comments

The Listener: Is Private Knowledge Real?

https://tantaman.com/2026-04-18-the-listener.html
2•tantaman•29m ago•0 comments

Why we expect more from technology and less from each other

https://hedgehogreview.com/issues/the-corporate-professor/articles/a-conversation-with-sherry-turkle
2•plenched•30m ago•0 comments

25 Weeks Challenge

https://25weeks.now/
2•kilroy123•31m ago•0 comments

Sherry Turkle: "We're losing the raw, human part of being with each other"

https://www.theguardian.com/science/2013/may/05/rational-heroes-sherry-turkle-mit
6•plenched•35m ago•0 comments

Who is using Qubrid for model API and GPU? How do they compare with Openrouter?

https://platform.qubrid.com/
2•tech_curator•36m ago•0 comments

Show HN: Gradle Avro Plugin to generate Java POJOs from Avro schemas

https://github.com/flumennigrum/gradle-avro-plugin
2•ysgomes•38m ago•0 comments

Show HN: Solyto – a free, open-source all-in-one personal management app

https://solyto.app
8•Leomuck•38m ago•4 comments

Anthropic's relationship with the Trump administration seems to be thawing

https://techcrunch.com/2026/04/18/anthropics-relationship-with-the-trump-administration-seems-to-...
1•steveharing1•40m ago•0 comments