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

Comments

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

The Constexpr Debugger

https://blog.jetbrains.com/clion/2025/09/introducing-constexpr-debugger/
1•ingve•1m ago•0 comments

The $10 Payment That Cost Me $43.95 – The Madness of SaaS Chargebacks

https://medium.com/@citizenblr/the-10-payment-that-cost-me-43-95-the-madness-of-saas-chargebacks-...
1•evermike•2m ago•0 comments

Arc Tabs – Sidebar Vertical Tabs for You

https://chromewebstore.google.com/detail/arc-tabs-sidebar-vertical/fmdcddgkjceilbjnendchimddgbmnjdo
1•nanxiaobei•2m ago•0 comments

Hail the Maintainers (2016)

https://aeon.co/essays/innovation-is-overvalued-maintenance-often-matters-more
1•throw0101a•3m ago•0 comments

Global Crossing Is Reborn

https://pracap.com/global-crossing-reborn/
1•wwilson•3m ago•0 comments

No Pain, No Gain

https://blog.staysaasy.com/p/the-trauma-you-need-to-learn
2•jger15•3m ago•0 comments

The Day the Linter Broke My Code

https://blog.fillmore-labs.com/posts/errors-2/
1•eik•5m ago•1 comments

Neuronpedia - open souce interpretability platform for AI Models

https://www.neuronpedia.org/
1•nalinidash•8m ago•0 comments

Tyler Robinson and America's Lost Boys

https://www.wsj.com/opinion/tyler-robinson-and-americas-lost-boys-16e1a64f
1•Anon84•9m ago•1 comments

Best Free SQLite GUIs

https://turso.tech/blog/5-best-free-sqlite-gui
1•shaswatraj•13m ago•0 comments

Curious Connections: Voyager Probes and Sinclair ZX Spectrum

https://www.theregister.com/2025/09/15/curious_connections_between_the_voyager/
1•mastazi•14m ago•0 comments

Happy music could help you recover from motion sickness

https://www.frontiersin.org/news/2025/09/03/happy-music-could-help-you-recover-from-motion-sickne...
1•mfld•16m ago•0 comments

Leatherman (Vagabond)

https://en.wikipedia.org/wiki/Leatherman_(vagabond)
1•redbell•16m ago•0 comments

Why VCs Are Funding $100M Remote Control Toys

https://www.youtube.com/watch?v=sRYOSnei-2U
1•frag•18m ago•0 comments

Plasma Beam Solution Tackles Kessler Syndrome Threat

https://www.universetoday.com/articles/a-bi-directional-plasma-thruster-could-deorbit-space-junk-...
1•jnord•18m ago•0 comments

Childlike sex dolls being advertised on Facebook

https://www.thebureauinvestigates.com/stories/2025-09-13/childlike-sex-dolls-being-advertised-on-...
2•Improvement•19m ago•1 comments

How to Code Better with AI

https://medium.com/@christopher.graves09/how-to-code-better-with-ai-the-one-thing-99-of-developer...
1•cgvas•21m ago•0 comments

Google Search Tests Dropping 100 Search Results Parameter

https://www.seroundtable.com/google-search-drops-100-results-parameter-40097.html
1•barron35•26m ago•0 comments

Show HN: Kafy – kubectl-style CLI for Kafka management

https://github.com/KLogicHQ/kafy
1•makilan•30m ago•0 comments

Listening to Unreliable Narrators

https://secondvoice.substack.com/p/listening-to-unreliable-narrators
1•jger15•38m ago•0 comments

Tracking Trust with Rust in the Kernel

https://lwn.net/Articles/1034603/
1•pykello•39m ago•0 comments

Overcoming Existential Dread (explained by ducks) [video]

https://www.youtube.com/watch?v=cMXkiDjzZqo
2•keepamovin•41m ago•0 comments

Actually Good Encryption? Confusing Users by Changing Nonces (2022) [pdf]

https://ethz.ch/content/dam/ethz/special-interest/infk/inst-infsec/appliedcrypto/education/theses...
1•zygentoma•46m ago•0 comments

Looking for good books? A dataviz to explore NPR's Best Books 2013-2024

https://andrewmarder.net/books/
2•amarder•47m ago•0 comments

DNA cassette tape can store every song ever recorded

https://www.newscientist.com/article/2495758-dna-cassette-tape-can-store-every-song-ever-recorded/
1•Maf1•50m ago•1 comments

IETF Draft: Authenticated Transfer Repo and Sync Specification

https://www.ietf.org/archive/id/draft-holmgren-at-repository-00.txt
1•diggan•50m ago•1 comments

Is AI video the future of storytelling, or just the end of stories?

1•jamessmithe•53m ago•0 comments

Lesser-Known but C Language Facts That Might Surprise You

1•whyandgrowth•56m ago•0 comments

Cheese cave fungi reveal how genetic mutations drive rapid evolutionary change

https://phys.org/news/2025-09-cheese-cave-fungi-reveal-genetic.html
1•pseudolus•56m ago•0 comments

The Startup Killer Nobody Talks About: Domain Negotiations

https://www.brandhunt.com/
1•brandhunt•1h ago•1 comments