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•8mo ago

Comments

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

Opera GX is finally making its to way to Linux

https://www.neowin.net/news/opera-gx-is-finally-making-its-to-way-to-linux/
1•bundie•35s ago•0 comments

Why swearing makes you stronger

https://www.apa.org/news/press/releases/2025/12/swearing-makes-you-stronger
1•rustoo•7m ago•0 comments

You are not crazy – Douglas Rushkoff

https://rushkoff.substack.com/p/you-are-not-crazy
1•OgsyedIE•8m ago•0 comments

Ask HN: What weird GitHub Copilot behavior are you seeing?

1•stikit•10m ago•0 comments

Show HN: Tureff – Search a keyword to create a chatroom instantly

https://tureff.com
1•bugon•15m ago•1 comments

OpenBSD-current now runs as guest under Apple Hypervisor

https://www.undeadly.org/cgi?action=article;sid=20260115203619
5•gpi•16m ago•0 comments

Happy Birthday, Wikipedia: We need you now more

https://www.salon.com/2026/01/15/happy-birthday-wikipedia-we-need-you-now-more-than-ever/
2•hkhn•19m ago•0 comments

Show HN: Vibe Coded Text Categorizer

https://github.com/tadasv/vibed-categorizer
1•tadasv•26m ago•0 comments

Cloudflare threatens Italy exit over €14M fine

https://ioplus.nl/en/posts/cloudflare-threatens-italy-exit-over-14m-fine
6•soheilpro•27m ago•3 comments

Renewable-powered system uses calcium to reduce emissions and scale for farmers

https://phys.org/news/2026-01-ammonia-production-renewable-powered-calcium.html
1•wglb•28m ago•1 comments

Show HN: Aventos – An experiment in cheap AI SEO

https://www.aventos.dev/
1•JimsonYang•29m ago•0 comments

IPFS OCI Registry

https://github.com/fbongiovanni29/ipfs-oci-registry
3•noobernetes•32m ago•1 comments

The most unhinged (recent) computer science discoveries [video]

https://www.youtube.com/watch?v=wgJojeXcuc4
1•surprisetalk•33m ago•0 comments

British redcoat's lost memoir reveals harsh realities of life as a disabled vet

https://phys.org/news/2026-01-british-redcoat-lost-memoir-reveals.html
1•wglb•33m ago•1 comments

The Great Filter (Or Why High Performance Eludes Most Dev Teams, Even with AI)

https://codemanship.wordpress.com/2026/01/12/the-great-filter-or-why-high-performance-still-elude...
2•gmays•37m ago•0 comments

Emoji Design Convergence Review: 2018 – 2026

https://blog.emojipedia.org/emoji-design-convergence-review-2018-2026/
1•jumpocelot•40m ago•0 comments

SETI Home Flags 100 Signals After Sorting 12B Others

https://news.berkeley.edu/2026/01/12/for-21-years-enthusiasts-used-their-home-computers-to-search...
23•TMEHpodcast•41m ago•1 comments

OpenAI and Gabe Newell Back a Bold New Take on Fusing Humans and Machines

https://www.corememory.com/p/exclusive-openai-and-sam-altman-back-merge-labs-bci
4•ossa-ma•44m ago•0 comments

Antarctic submillimeter telescope enables shows full view of carbon cycle

https://phys.org/news/2026-01-antarctic-submillimeter-telescope-enables-view.html
3•wglb•45m ago•1 comments

The things I miss from the world

https://thehumansource.com/
2•salbertengo•45m ago•1 comments

Ask HN: How to make my website exist for 100 years?

4•klgt•48m ago•4 comments

One-Core-API (run modern binaries on Windows XP/2003)

https://github.com/shorthorn-project/One-Core-API-Binaries
2•unleaded•52m ago•1 comments

Gnome 50 Alpha Released with the X11 Code Gutted

https://www.phoronix.com/news/GNOME-50-Alpha
4•mikece•58m ago•0 comments

Quint Visualizer: a GraphViz-like visualizer for Quint traces

https://quint-visualizer.noghartt.dev/
1•todsacerdoti•1h ago•0 comments

Thinking Machines is nothing without its people

https://sources.news/p/thinking-machines-is-nothing-without
1•coloneltcb•1h ago•0 comments

Show HN: An open-source form builder that outputs tailwind components

https://tailwind-form-builder.sheetmonkey.io/
2•a_band•1h ago•0 comments

Boltz PBC Launches with $28M to Democratize AI Platforms for Drug Discovery

https://www.genengnews.com/topics/artificial-intelligence/boltz-pbc-launches-with-28m-to-democrat...
1•jscyc•1h ago•0 comments

New map of landscape beneath Antarctica unveiled (2025)

https://www.bas.ac.uk/media-post/new-map-of-landscape-beneath-antarctica-unveiled/
4•thunderbong•1h ago•0 comments

Show HN: Reversing YouTube’s “Most Replayed” Graph

https://priyavr.at/blog/reversing-most-replayed/
7•prvt•1h ago•2 comments

Tell HN: Execution is cheap, ideas matter again

2•keepamovin•1h ago•1 comments