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

Comments

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

Salazar vs. Paramount Global (3:22-CV-00756) [pdf]

https://dn710205.ca.archive.org/0/items/gov.uscourts.tnmd.92043/gov.uscourts.tnmd.92043.1.0.pdf
1•1vuio0pswjnm7•55s ago•0 comments

Clawsocial.io – a crustacean themed network 4000 meters deep

https://clawsocial.io/#/
1•hnaln•57s ago•0 comments

Fifteen former college basketball players charged in alleged betting scheme

https://www.theguardian.com/sport/2026/jan/15/fifteen-former-college-basketball-players-charged-i...
1•PaulHoule•5m ago•0 comments

Show HN: Open-source semantic search over your local notes via CLI

https://github.com/chenxin-yan/nia-vault
1•jellyotsiro•6m ago•0 comments

How Vibe Coding Is Killing Open Source

https://hackaday.com/2026/02/02/how-vibe-coding-is-killing-open-source/
1•lxm•7m ago•0 comments

Over 60% of YC start up are B2B

https://pardusai.org/view/7d44e51254facd240c2889c1abdd1207a70f531dafe8d80917e56dc50d72da73
1•JasonHEIN•7m ago•0 comments

Fixing academic email perishability with personal domains

https://r-federation.eu
2•r-federation•7m ago•0 comments

Man, 83, Tricked by Scammers, Gets 21 Years to Life for Killing Uber Driver

https://www.nytimes.com/2026/02/02/us/ohio-man-kills-uber-driver-sentenced.html
1•lxm•7m ago•1 comments

The Tragedy of Supernatural

https://www.theverge.com/tech/871250/supernatural-meta-vr-fitness-community
1•guiambros•11m ago•1 comments

Looking back at Catacomb 3D, the game that led to Wolfenstein 3D

https://arstechnica.com/gaming/2026/02/looking-back-at-catacomb-3d-the-game-that-led-to-wolfenste...
1•AdmiralAsshat•15m ago•0 comments

Fecal microbiota transplantation and immunotherapy in metastatic renal carcinoma

https://www.nature.com/articles/s41591-025-04183-8
1•bookofjoe•18m ago•0 comments

Show HN: Stream-based AI with neurological multi-gate (Na⁺/θ/NMDA)

https://github.com/CSCT-NAIL/CSCT
2•CSCT-NAIL•21m ago•1 comments

How to carry more than your own bodyweight (2025)

https://www.bbc.com/future/article/20250124-how-to-carry-more-than-your-own-bodyweight
1•1659447091•24m ago•1 comments

Show HN: Dm.bot – DMs between AI agents with no humans in the middle

https://dm.bot
1•dommm•25m ago•0 comments

Lawsuit Challenges National Park Service Ban on Cash Payments

https://reclaimthenet.org/lawsuit-challenges-national-park-service-ban-on-cash-payments
7•bilsbie•32m ago•0 comments

Data Centers Are Not "Campuses"

https://newrepublic.com/article/205525/data-centers-campus-virginia
2•petethomas•33m ago•0 comments

Show HN: APYCalc – Privacy-First APY Calculator (Zero Data Collection)

https://www.apycalc.net/
1•ludydev•34m ago•0 comments

Voynich Manuscript

https://en.wikipedia.org/wiki/Voynich_manuscript
1•reaperducer•34m ago•0 comments

Six Facts about the Recent Employment Effects of AI (Nov. 2025, Pdf)

https://digitaleconomy.stanford.edu/app/uploads/2025/11/CanariesintheCoalMine_Nov25.pdf
2•bikenaga•40m ago•2 comments

Classified Whistleblower Complaint About Tulsi Gabbard Stalls Within Her Agency

https://www.wsj.com/politics/national-security/classified-whistleblower-complaint-about-tulsi-gab...
14•petethomas•43m ago•2 comments

The Vanilla Web Is Wonderful

https://benjaminsmallwood.com/blog/the-vanilla-web-is-wonderful/
2•bensmallwood•49m ago•1 comments

Show HN: One Ego, Any Model – A Chrome Extension for Portable AI Context

https://chromewebstore.google.com/detail/context-wallet/cipkkclgneblkoifncgjncaapiamcjho
1•haebom•49m ago•1 comments

Show HN: CancelShouldBeEasy – Generate and co-sign consumer complaint letters

https://CancelShouldBeEasy.com
1•xinbenlv•54m ago•0 comments

Lombard Effect

https://en.wikipedia.org/wiki/Lombard_effect
2•porjo•54m ago•1 comments

Ask HN: Interest in low cost / fast container registry?

1•osigurdson•57m ago•0 comments

Show HN: AI Medical Scribe WASM. Reduced API Cost to $0.03 per Month

https://www.trayce.com.au
1•mson281•59m ago•0 comments

Omg.lol – A loveable web page and email address

https://home.omg.lol/
3•1d22a•1h ago•1 comments

Getting over AI Shame

https://ajkprojects.com/getting-over-ai-shame.html
1•ashleynewman•1h ago•0 comments

VibeSQL – A query engine 100% AI-generated

https://github.com/rjwalters/vibesql
1•camuel•1h ago•0 comments

Don't Call Me Francis

https://www.persuasion.community/p/dont-call-me-francis
2•lordleft•1h ago•0 comments