frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

We discovered a new variant of Super Mario Bros

https://nintendowire.com/news/2026/07/29/we-discovered-a-new-super-mario-bros-variant/
1•hn1986•4m ago•0 comments

Art as Compression

https://feed.grantcuster.com/post/2026-07-29-10-20-08-art-as-compression
1•msephton•11m ago•0 comments

Higher Airfares Are Looming on Busy Routes as AI Squeezes Out Bargains

https://www.bloomberg.com/news/articles/2026-07-29/higher-airfares-loom-on-busy-routes-as-ai-sque...
2•petethomas•12m ago•0 comments

xAI sues Minnesota over its law banning 'nudification' technology

https://apnews.com/article/minnesota-artificial-intelligence-nudification-x-elon-musk-deepfake-13...
5•devonnull•16m ago•1 comments

Talk to Your Area (Askaround.me)

1•SahibzadaAM•25m ago•0 comments

Show HN: Legionlinuxtui – Control Lenovo legion laptops in the terminal

https://github.com/nooneknowspeter/legionlinuxtui
3•nooneknowspeter•25m ago•0 comments

The Programming Tourist

https://amrshawky.com/posts/cs-correction/
3•amr_shawky•26m ago•0 comments

Is Mythos good at cyber because it kept hacking Anthropics sandboxes in training

https://www.lesswrong.com/posts/QKDoZe6EKhxnFjLWK/is-mythos-good-at-cyber-because-it-kept-hacking...
3•lukaspetersson•27m ago•0 comments

The Art of Life [video]

https://www.youtube.com/watch?v=7gUh8j5ui0o
2•momentmaker•28m ago•0 comments

Study uncovers lost 'golden age' of languages

https://news.yale.edu/2026/07/23/study-uncovers-lost-golden-age-languages
2•gmays•31m ago•0 comments

What Silicon Valley gets wrong about AI

https://sfstandard.com/2026/07/29/myth-ai-intelligence-medicine-regulation/
2•littlexsparkee•42m ago•2 comments

Encryption in the 1790s

https://hackaday.com/2026/07/23/encryption-in-the-1790s/
3•kristianp•45m ago•0 comments

Show HN: GlobeHoppr – find a route between cities using limited-distance jumps

https://globehoppr.com
3•JohnJohnson123•47m ago•0 comments

Before the theorem prover: verification is older than the alphabet

https://amangoel.ai/blog/before-the-theorem-prover/
3•amangoelumich•49m ago•0 comments

Do newer coding models end up training on the AI slop generated by older models?

4•tbharath•50m ago•3 comments

Google AI Studio "Delete" doesn't delete – server chat persists (3 videos)

https://www.youtube.com/watch?v=LBQfNbPCxQw
4•Bitu79•54m ago•3 comments

A pharmacy chain in Vermont implemented AI for efficiency

https://vtdigger.org/2026/07/29/a-pharmacy-chain-in-vermont-implemented-ai-for-efficiency-its-led...
18•omerhj•54m ago•13 comments

The World Is to Focused on Quarterly Earnings

2•Taikhoom2010•55m ago•0 comments

ACR Stealer: ClickFix, Etherhiding, and Stego, Oh My

https://discourse.ifin.network/t/acr-stealer-clickfix-etherhiding-and-stego-oh-my/694
2•speckx•57m ago•0 comments

Show HN: RunNburn – Run a 295B Moe from a 98GB GGUF on a 64GB RAM Desktop

https://github.com/coderredlab/runNburn
2•coderredlab•59m ago•0 comments

Show HN: A free palm-reading tool that works in the browser

https://wishastro.com/tools/palm-reading
2•rp321•1h ago•0 comments

Why AI Needs a "Genie Coefficient"

https://www.schneier.com/blog/archives/2026/07/why-ai-needs-a-genie-coefficient.html
2•anotherevan•1h ago•0 comments

OpenAI ARR in July topped all of Q2

https://www.cnbc.com/2026/07/29/openai-cfo-sarah-friar-tells-employees-arr-in-july-topped-all-of-...
2•gmays•1h ago•0 comments

Flume Water Monitor 915 MHz Security Is Pretty Good

https://waveformsecurity.com/blog/flume/
15•credibleconure•1h ago•4 comments

Face Recognition Blocking Glasses Tested

https://ipvm.com/reports/face-recognition-blocking-glasses-tested
3•jhonovich•1h ago•1 comments

IronClaw 1.0 – one secure agent on CLI, Slack and Telegram, one memory

https://near.ai/blog/introducing-ironclaw-1-0
2•alejoras•1h ago•0 comments

Three Journeys: Anton Chekhov on the Road (2001)

https://www.newyorker.com/magazine/2001/10/29/three-journeys
3•mitchbob•1h ago•1 comments

Overengineered Calculator: Zig and QBE

https://tomekw.com/overengineered-calculator-zig-qbe/
5•rguiscard•1h ago•0 comments

Show HN: Damn Center (the page) – extension that helps centering any website

https://github.com/rinn7e/damn-center-extension
3•rinn7e•1h ago•1 comments

A 22-Hour Nonstop Flight Between London and Sydney Is Coming

https://www.nytimes.com/2026/07/29/world/australia/qantas-long-haul-flight-project-sunrise.html
3•elsewhen•1h ago•0 comments