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

Comments

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

'Like science fiction': How a new wave of immunotherapy is eliminating cancers

https://www.bbc.com/future/article/20260410-how-a-new-wave-of-immunotherapy-is-eliminating-cancers
1•breve•6m ago•0 comments

Spirit Airlines' Abandoned Azure Booking APIs and Exposed Phishing Domains

https://braydenbte.substack.com/p/spirit-airlines-liquidation
1•BTheEPIC•9m ago•0 comments

China Pressure Canceled Largest Digital Human Rights Conference

https://www.404media.co/china-pressure-canceled-worlds-largest-digital-human-rights-conference/
1•Cider9986•10m ago•1 comments

The Google Scholar bug that erases researchers from their own work

https://matthewearnest.dev/blog/google-scholar-single-letter-surname
1•mearnest•12m ago•1 comments

Spine – verified codebase onboarding for Claude Code

https://github.com/ahmedbutt2015/spine
1•ahmedthefayyaz•14m ago•0 comments

What Silicon Valley layoffs hide about the future of the job market

https://www.yahoo.com/news/sectors/technology/articles/what-silicon-valley-layoffs-hide-about-the...
2•jnord•17m ago•0 comments

Buffon's Needle Problem Visualized

https://ivanludvig.dev/pi-needle/
1•IvanLudvig•18m ago•1 comments

EaglePress - Python3 CMS to blog

https://postwits.com/post/eaglepress-cms-latest-version
1•eagle10ne•19m ago•0 comments

Mousetrapped

https://mousetrappedcomic.blog
1•8organicbits•22m ago•1 comments

Show HN: FundSim – free browser LBO, DCF and IB deal simulator (no signup)

https://fundsimulate.com/
1•Nishkal2010•25m ago•0 comments

English Became My New Favorite User Interface

https://www.robot-future.com/preview/69e8284090457dba8223b433
1•busters4•27m ago•0 comments

AI is locking people out. At Scale

https://conesible.de/wab/
2•cdrnsf•29m ago•0 comments

VueBuds integrate low-res cameras and visual AI as a smart glasses alternative

https://spectrum.ieee.org/smart-earbuds-smart-glasses-privacy
2•sohkamyung•31m ago•0 comments

Ask HN: Is it possble to own Ask.com?

1•alexander2002•34m ago•0 comments

Pentagon strikes deals with 7 Big Tech companies after shunning Anthropic

https://www.cnn.com/2026/05/01/tech/pentagon-ai-anthropic
5•breve•39m ago•1 comments

Mac browser for a human that also gives coding agents local APIs

https://github.com/wkdomains/macos-app
2•fcpguru•40m ago•0 comments

Axios Finish Line: Go start a business

https://www.axios.com/2026/05/01/start-business-using-ai-tips
1•petethomas•41m ago•0 comments

Last few hours until Unix Epoch 1777777777

https://www.epoch101.com/epochclock
2•867-5309•47m ago•1 comments

Waymo Drives Off with South Bay Man's Luggage

https://sfist.com/2026/05/01/waymo-drives-off-with-south-bay-mans-luggage-after-trunk-fails-to-open/
20•toss1•48m ago•6 comments

Nature vs. nurture: How much of our personalities are determined at birth?

https://www.bbc.com/future/article/20260501-nature-vs-nurture-how-much-of-our-personalities-are-d...
2•mellosouls•51m ago•0 comments

I Uploaded VUMC's Open Manual of Surgery in Resource-Limited Settings to GitHub

https://github.com/onlinecodeuser/Open-Manual-of-Surgery-in-Resource-Limited-Settings/tree/main
3•HNuseraccount•53m ago•0 comments

Nocturnal migratory birds follow rhythm of the moon

https://www.lunduniversity.lu.se/article/nocturnal-migratory-birds-follow-rhythm-moon
2•hhs•56m ago•0 comments

Who is funding the future of British defence?

https://vulpesetleo.substack.com/p/who-is-funding-the-future-of-british
1•foxandlion•56m ago•0 comments

Cottage – A modern Git based age-encrypted secrets manager for teams

https://github.com/sayanarijit/cottage
2•sayanarijit•58m ago•1 comments

No brain required: This is how the single-celled “Stentor” learns

https://www.ucsf.edu/news/2026/04/431841/no-brain-required-how-single-celled-stentor-learns
2•hhs•58m ago•0 comments

PEP 661 – Sentinel Values, accepted 5 years later

https://peps.python.org/pep-0661/
2•birdculture•59m ago•0 comments

Gute Form

https://de.wikipedia.org/wiki/Gute_Form
1•doener•1h ago•0 comments

AI Wrote the Code. Can Your Enterprise Ship It?

https://stackgen.com/blog/your-ai-wrote-the-code.-can-your-enterprise-actually-ship-it
1•SanjeevSharma•1h ago•0 comments

Ask.com shuts down after 30 years

https://mashable.com/article/ask-jeeves-shut-down
3•el_duderino•1h ago•1 comments

Berkshire Has a Website from the '90s and Buffett Fans Say Don't Mess with It

https://www.wsj.com/tech/personal-tech/berkshire-hathaway-shareholder-meeting-warren-buffett-greg...
3•firexcy•1h ago•1 comments