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/

Intel stock hits new all-time highs for first time since 2000

https://cryptobriefing.com/intel-stock-all-time-high-since-2000/
1•mgh2•21s ago•0 comments

Content credentials – hardware signing of photo and video cameras

https://contentcredentials.org/
1•sveme•40s ago•0 comments

Why I'm Done Making Desktop Applications

https://www.kalzumeus.com/2009/09/05/desktop-aps-versus-web-apps/
1•claxo•2m ago•0 comments

Six things I'll remember when I think about Tim Cook's version of Apple

https://arstechnica.com/gadgets/2026/04/six-things-ill-remember-when-i-think-about-tim-cooks-vers...
1•01-_-•7m ago•0 comments

UK Biobank health data listed for sale in China, government confirms

https://www.bbc.com/news/articles/cpvxgl3n138o
1•01-_-•7m ago•0 comments

What I learned asking 11 AI models to grade each other's AI predictions

https://shimin.io/journal/what-i-learned-asking-11-ai-models-to-grade-each-other/
1•recurrence•8m ago•0 comments

Why High-Testosterone Men Don't Perform for the Crowd

https://www.nature.com/articles/s41386-023-01570-y
1•bilsbie•8m ago•0 comments

El Salvador Adds New Tools in National Health App to Track and Treat (DoctorSV)

https://ticotimes.net/2026/04/19/el-salvador-adds-new-tools-in-national-health-app-to-track-and-t...
1•catlikesshrimp•9m ago•1 comments

Asia's Billionaires Are Bankrolling a Push for More Babies

https://www.bloomberg.com/news/articles/2026-04-24/asia-s-billionaires-offer-cash-incentives-to-b...
1•snidane•9m ago•0 comments

Rubbing testosterone gel on men's upper arms eliminates the audience effect

https://www.psypost.org/rubbing-testosterone-gel-on-mens-upper-arms-eliminates-the-audience-effec...
1•bilsbie•10m ago•0 comments

Show HN: Tarot Down Detector – a status page as a tarot reading

https://down.artemistarot.app/tarot-down-detector
1•suzgoldblatt•14m ago•0 comments

The Design of Design – Gordon L. Glegg(1969)

https://annas-archive.gl/md5/ea8f706c8ba56aaa741d5b45245ba25d
1•num42•14m ago•0 comments

You know what consciousness is: you live in soul land

https://aeon.co/essays/you-know-what-consciousness-is-you-live-in-soul-land
1•speckx•15m ago•0 comments

Unfounded Health Concerns Are Powering a Solar Backlash

https://www.propublica.org/article/michigan-solar-farms-health-concerns-st-clair-county
1•Brajeshwar•15m ago•0 comments

Printing a Check for Free

https://www.check.supply/check-printer
1•pfista•16m ago•0 comments

Ask HN: Anyone else get fatigued by interaction with LLMs?

3•yesitcan•17m ago•2 comments

Show HN: PrivateClaw – AI agents running in confidential VMs you can verify

https://privateclaw.dev
5•lambence•20m ago•0 comments

NMail Is Neat

https://nate.mecca1.net/posts/2026-04-23_nmail-is-neat/
1•01nate•22m ago•1 comments

Cloudflare Agents Week: Infrastructure for Running AI Agents at Scale

https://www.youtube.com/watch?v=GE5oiUQPl1Q
1•emot•24m ago•1 comments

The Fall of the Theorem Economy

https://davidbessis.substack.com/p/the-fall-of-the-theorem-economy
3•fuglede_•26m ago•1 comments

Anthropic's product team moves faster than anyone else [video]

https://www.youtube.com/watch?v=PplmzlgE0kg
1•iamflimflam1•27m ago•0 comments

A good AGENTS.md is a model upgrade. A bad one is worse than no docs at all

https://www.augmentcode.com/blog/how-to-write-good-agents-dot-md-files
1•vinhnx•28m ago•0 comments

Show HN: TurbineFi – Build, Backtest, Deploy Prediction Market Strategies

https://www.turbinefi.com
3•adamewozniak•29m ago•0 comments

Bad Connection

https://citizenlab.ca/research/uncovering-global-telecom-exploitation-by-covert-surveillance-actors/
2•Tomte•30m ago•1 comments

The stablecoin market has got too stable

https://www.economist.com/finance-and-economics/2026/04/21/the-stablecoin-market-has-got-too-stable
2•edward•30m ago•0 comments

Could Neanderthals Speak Like Us?

https://nautil.us/could-neanderthals-speak-like-us-1280207
4•Brajeshwar•31m ago•1 comments

Global oil crisis has changed fossil fuel industry for ever, IEA chief says

https://www.theguardian.com/environment/2026/apr/24/global-oil-crisis-changed-fossil-fuel-industr...
2•helsinkiandrew•31m ago•0 comments

Five Skills of Good Managers

https://www.chicagobooth.edu/review/five-skills-good-managers
2•rzk•32m ago•0 comments

Two AIs, One PR: Adversarial Code Review with LLMs

https://p.agnihotry.com/post/two-ais-one-pr-adversarial-code-review-loop/
2•pagnihotry•32m ago•0 comments

Modern LZ Compression Part 2: FSE and Arithmetic Coding

https://glinscott.github.io/lz/part2.html
4•glinscott•32m ago•1 comments