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/

2026 humanoid robot half-marathon kicks off in Beijing [video]

https://www.youtube.com/watch?v=zqgc9C3cC6U
1•kasperni•44s ago•0 comments

Master of chaos wins $3M math prize for 'blowing up' equations

https://www.scientificamerican.com/article/master-of-chaos-wins-usd3m-math-prize-for-blowing-up-e...
1•tzury•2m ago•0 comments

The next food crisis may have begun

https://www.irishtimes.com/world/middle-east/2026/04/16/the-worlds-next-food-crisis-may-have-alre...
2•measurablefunc•17m ago•0 comments

Shanghai Relocates Neighbourhood with Robots (2025)

https://parametric-architecture.com/shanghai-relocates-7500-ton-shikumen-complex-with-robots/
1•thenthenthen•20m ago•0 comments

Berkeley EECS undergraduate TAs paid $89-102/HR

https://twitter.com/minilek/status/2045632119087448164
1•osnium123•21m ago•1 comments

Show HN: Fuelgauge – a Claude Code status line that doesn't need Node

https://github.com/adityaarakeri/fuelguage
1•humblejedi•23m ago•0 comments

Ask HN: Which IDE are you using?

1•wasimsk•28m ago•1 comments

Trump orders fast tracking review of psychedelics for mental health disorders

https://www.npr.org/2026/04/18/nx-s1-5789859/psychedelic-treatments-mental-health
5•mikhael•35m ago•1 comments

Show HN: Customer Reviews can be represented through Voice capture/generation

https://customersvoices.com
1•Zavora•43m ago•0 comments

Garbage Collection Without Unsafe Code

https://fitzgen.com/2024/02/06/safe-gc.html
1•foota•44m ago•0 comments

First trailer released for western starring AI version of Val Kilmer

https://www.theguardian.com/film/2026/apr/16/first-trailer-released-for-ai-val-kilmer-western
1•breve•47m ago•1 comments

Ask HN: Where do I submit a bug report for Windows Snipping Tool?

1•pests•50m ago•0 comments

Thiel-backed startup develops AI to adjudicate the truth of journalism

https://techcrunch.com/2026/04/15/can-ai-judge-journalism-a-thiel-backed-startup-says-yes-even-if...
2•ZunarJ5•53m ago•1 comments

AI answers break down, and what each one looks like

https://substack.com/@hanaleegoldin/note/c-244676181
3•billybuckwheat•56m ago•0 comments

Windows Server 2025 Runs Better on ARM

https://jasoneckert.github.io/myblog/server-2025-arm64/
1•jasoneckert•58m ago•1 comments

Fake partisan avatars emerge on social media

https://www.nytimes.com/2026/04/17/business/media/artificial-intelligence-trump-social-media.html
1•anigbrowl•1h ago•0 comments

DocuHog – The DocuSign Local Simulator

https://github.com/dwelch2344/docuhog
2•dwelch2344•1h ago•2 comments

Show HN: SnapReceipts Snap a receipt, split the bill instantly

https://snapreceipts.fyi/
1•armishra•1h ago•1 comments

The Role of Motherhood in the Pop Art of System Programing

https://multicians.org/pgn-motherhood.html
2•Tevo•1h ago•1 comments

User Inyerface – A worst-practice UI experiment

https://userinyerface.com/
4•hunvreus•1h ago•0 comments

ChatGPT plan purchasing bug: Free to buy

https://community.openai.com/t/security-report-apple-pay-receipt-validation-does-not-bind-to-purc...
2•pengfeituan•1h ago•0 comments

Cory Doctorow on the High Cost of Living with the Ultra-Rich

https://www.newyorker.com/books/book-currents/cory-doctorow-on-the-high-cost-of-living-with-the-u...
6•mitchbob•1h ago•1 comments

Wawa VFX

https://github.com/wass08/wawa-vfx
1•Lisa0802•1h ago•0 comments

The Match Act Is the Missing Piece in America's AI Export Control Strategy

https://www.thefai.org/posts/the-match-act-is-the-missing-piece-in-america-s-ai-export-control-st...
1•num42•1h ago•0 comments

Bipartisan Bill to Tighten Controls on Sensitive Chipmaking Equipment

https://baumgartner.house.gov/2026/04/02/baumgartner-introduces-bipartisan-bill-to-tighten-contro...
8•num42•1h ago•1 comments

37signals Dev – The ONCE app server

https://dev.37signals.com/once-app-server/
1•doppp•1h ago•0 comments

Show HN: Website that recommends outfit using weather and AI

https://what2wear-two.vercel.app
1•COOLmanYT•1h ago•2 comments

The Season Finale of TBPN

https://www.workingtheorys.com/p/tbpn
2•momentmaker•1h ago•0 comments

Using AI to get better at algorithms

https://medium.com/@andreiboar/algotutor-using-ai-to-actually-get-better-at-algorithms-a2b7b96e054a
2•zuzuleinen•2h ago•0 comments

Three-Monitor Ridge Racer Machine Emulated in MAME

https://hackaday.com/2026/04/18/three-monitor-ridge-racer-machine-emulated-in-mame/
2•pathompong•2h ago•0 comments