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/

Analyzing Emacs News: 564 posts over 11 years

https://sachachua.com/blog/2026/10/analyzing-emacs-news/
1•srijan4•2m ago•0 comments

Micron skipping planned NAND generation

https://www.blocksandfiles.com/flash/2026/10/22/micron-skipping-planned-nand-generation/5304729
1•rbanffy•2m ago•0 comments

Ask HN: Mined crypto on Azure when I was 13, after 12y still cannot open account

1•realaccfromPL•6m ago•0 comments

Learning to Be Me (1990) [pdf]

https://gwern.net/doc/fiction/science-fiction/1995-egan.pdf
1•zahrevsky•6m ago•1 comments

If You're So Smart, Then Why Are You So Poor? Russia's 1990s Revisited

https://ninabyzantina.com/2015/11/19/if-youre-so-smart-then-why-are-you-so-poor-russias-1990s-rev...
1•g1184•7m ago•0 comments

FirstTake – an open-source Claude Code skill for video shoots, offload to master

https://github.com/emersonsklar/firsttake
1•emersonsklr•9m ago•0 comments

Replace Jupyter Notebook with Emacs Org Mode (2023)

https://michaelneuper.com/posts/replace-jupyter-notebook-with-emacs-org-mode/
1•Tomte•14m ago•0 comments

How we made our MMDB files a 33% smaller

https://ipinfo.io/blog/how-made-mmdb-files-smaller
1•mmaia•17m ago•0 comments

I refuse to accept a censored Internet. Join Me at FOSDEM 27

https://talkweb.eu/openweb/4558/
27•Tomte•19m ago•1 comments

Fuck Nuance (2015)

https://crookedtimber.org/2015/08/31/fuck-nuance/
2•bariumbitmap•24m ago•0 comments

Show HN: AppNetPlotter – See how your Windows apps' connections are performing

https://github.com/winnie264/AppNetPlotter
1•suwapat•24m ago•0 comments

Show HN: A roguelike game with Vim motions and a "modal shotgun"

https://sebastiancarlos.github.io/hacker-fables-game/
1•httbs•27m ago•0 comments

ContextPod

https://chromewebstore.google.com/detail/contextpod-move-ai-chats/dgchalabofdmnpkfocaiijcnbkgkpkhd
1•sahilitup•29m ago•0 comments

Apple Watch's Disasterous Update

https://aperocky.com/blog/post.html?slug=apple-watch-sucks
3•Aperocky•29m ago•0 comments

Scientists rediscover how to make ancient Roman colour-changing glass

https://www.theguardian.com/science/2026/oct/25/scientists-rediscover-ancient-roman-colour-changi...
4•teleforce•29m ago•0 comments

Old new type of social media

https://toravii.com
1•linkhas•30m ago•0 comments

Pat Gelsinger: Why This Is the Best Time to Build Hardware

https://thechipletter.substack.com/p/pat-gelsinger-why-this-is-the-best
4•rbanffy•31m ago•1 comments

Show HN: React Component for Apple's iPod Simulator

https://ipod-simulator.vercel.app/
1•EvanZhouDev•33m ago•0 comments

Temporal Continuity API – Stopping agent amnesia and context drift

https://api.rscapex.com
1•TomKrysos•33m ago•0 comments

3D printable Commodore 64 keycaps, with a font recreated from my C64

https://github.com/szabadkai/Ajazz-C64-Keycaps
1•szabadkai•33m ago•1 comments

A 10-year-old CNN outperforms frontier LLMs for skin cancer diagnosis

https://lynchlab.net/llm-skin-cancer
4•sungam•34m ago•0 comments

Sabre Wulf Remastered

https://gp-64.com/swr/
21•adunk•34m ago•3 comments

Show HN: A persistent cyberpunk real-time Reddit running in a terminal

https://vibeworld.fly.dev/
2•sorbalda•35m ago•0 comments

Heatbit Says Your Water Heater Should Be Mining Bitcoin, and Now It Can

https://gizmodo.com/heatbit-says-your-water-heater-should-be-mining-bitcoin-and-now-it-can-200083...
2•rbanffy•36m ago•0 comments

Securing self-hosted services is exhausting, and I want to go back to SaaS

https://blog.outv.im/2026/i-wanna-return-to-saas/en/
3•outloudvi•41m ago•0 comments

Show HN: Benchmarking DSpark speculative decoding on a consumer GPU

https://github.com/juraj-jumic/dspark-local-bench
2•Termich•43m ago•0 comments

Addr: Neighbourhood

https://rtnf.substack.com/p/addrneighbourhood
1•altilunium•44m ago•0 comments

Show HN: Lavoi – On-device speech-to-text in under 500ms

https://lavoi.app/
1•LeDonT•45m ago•0 comments

Let Your LLM Talks About ARIO

https://zenodo.org/records/23441596
1•Ario_Framework•46m ago•0 comments

Show HN: A Morse code trainer whose landing page is the first lesson

https://morse.iamcanturk.dev/
1•iamcanturk•48m ago•0 comments