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/

11 Nanoseconds per Word: Over-Optimizing Anagrams

https://wiredream.com/anagram-fun/
1•ColinWright•33s ago•0 comments

The Tetris Guideline (yearly Tetris specification)

https://tetris.wiki/Tetris_Guideline
1•networked•56s ago•0 comments

Canva billionaire dumping a quarter of staff

https://www.afr.com/technology/canva-billionaire-takes-humane-approach-to-dumping-a-quarter-of-st...
1•Alien1Being•2m ago•0 comments

French bank Crédit Mutuel Arkéa victim of a hack of more than 118M euros

https://www.letelegramme.fr/economie/toute-l-actualite/le-credit-mutuel-arkea-victime-dun-piratag...
1•matthieu_bl•2m ago•0 comments

Timeless Documentation

https://developers.google.com/style/timeless-documentation
1•ankitg12•2m ago•0 comments

Why king – man + woman isn't queen

https://deployed-ai.io/blog/what-is-an-embedding/
2•danielklnstein•7m ago•0 comments

Tell HN: GitHub Is Down

8•yuvadam•8m ago•4 comments

Krea 3 Technical Report

https://www.krea.ai/blog/krea-3-technical-report
1•ravenical•13m ago•0 comments

Show HN: Rexfeed – A tech feed in a Rex side pane while your coding agent works

https://github.com/alpcanaydin/rexfeed
1•alpcan•13m ago•0 comments

GraalVM 25.5: new optimizations and Python web framework

https://medium.com/graalvm/graalvm-25-5-is-here-19535117b14b
1•mike_hearn•18m ago•0 comments

Osewa – An open-source alternative to SSH and Mosh

https://osewa.dev/
1•dkpk•23m ago•0 comments

Show HN: Umbra – a autonomous Android agent with background screen control

https://github.com/chengmatt416/umbra
1•pinyen_cheng•28m ago•1 comments

Show HN: Md2docx – Compile Markdown directly into native Word documents

https://md2docx.js.org/
1•mayank1513•28m ago•0 comments

The Peruvian hotel with a terrifying check-in

https://www.bbc.com/travel/article/20261028-the-peruvian-hotel-with-a-terrifying-check-in
2•tosh•29m ago•0 comments

How I AI - mental models for working with AI and long-horizon

https://blog.radix63.dk/posts/how-i-ai/
1•eisbaw•31m ago•0 comments

Ubuntu unattended-upgrades installs HAProxy version with a major regression

https://bugs.launchpad.net/ubuntu/+source/haproxy/+bug/2172897
3•sfkgtbor•32m ago•0 comments

Show HN: Hormuz Signal – Iran war escalation risk from real data

https://www.HormuzSignal.com/
2•mrPaul658•35m ago•0 comments

AI UI/UX designer: assign a ticket, get senior-reviewed Figma designs in 24-48h

https://ai.greensighter.com/
1•dakochamp•40m ago•0 comments

A Universe in the Ring: What If We Could Start Our Own Sandbox at CERN?

https://medium.com/system-weakness/a-universe-in-the-ring-what-if-we-could-start-our-own-sandbox-...
1•mkraft_berlin•40m ago•0 comments

ChatGPT and Work are merging soon, while ChatGPT Classic retires in January

https://9to5mac.com/2026/11/02/openai-is-retiring-chatgpt-classic-app-will-soon-combine-chat-and-...
1•tmarice•42m ago•0 comments

Geolocating any audio recording using flight data and the Doppler Effect

https://www.techradar.com/computing/cyber-security/youtuber-discovers-aircraft-noise-trick-that-c...
2•vrganj•49m ago•0 comments

Verification Is Not Knowledge: Science needs more than answers

https://blog.cosmos-institute.org/p/verification-is-not-knowledge
27•ersinesen•56m ago•11 comments

Flutter updates required to remediate the eMudhra certificate compromise

https://firebase.google.com/support/guides/compromised-emudhra-intermediate-ca
2•bitneuker•57m ago•0 comments

Milkman – The Better Alternative to Postman

https://milkman.dev/
7•jplunien•1h ago•8 comments

The Gacha game I play everyday, Nikke, was targeted by a supply chain attack

https://twitter.com/lauriferrd/status/2117655602843533509
3•katomegumi111•1h ago•0 comments

Show HN: Unsquatted – fast domain checker and curated list

https://unsquatted.com
2•vovahimself•1h ago•0 comments

Ideas for Testing Randomized Algorithms

https://timvieira.github.io/testing-randomized-algorithms/
2•bacr•1h ago•0 comments

Kitty 0.50

https://sw.kovidgoyal.net/kitty/changelog/#
81•porridgeraisin•1h ago•27 comments

Protocol Explorer

https://protocol-explorer-alpha.vercel.app/
2•giis•1h ago•0 comments

Show HN: Vegetable Gardening for Engineers

https://jrcpl.us/contrib/2020/gardening-for-engineers/
3•jrcplus•1h ago•0 comments