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•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/

First Stealht

1•AlenaSatoshi•37s ago

Efficiently Cooling Satellite Components in Space

https://www.fraunhofer.de/en/press/research-news/2026/june-2026/efficiently-cooling-satellite-com...
2•giuliomagnifico•5m ago•0 comments

Nvidia CEO Jensen Huang speaks at Computex 2026 (2:06:24 Video)

https://www.youtube.com/watch?v=9CJ_MZOOj_E
2•Nevaeh•6m ago•0 comments

A JavaScript PoC FROST side channel a browser tab that senses your SSD activity

https://github.com/brammittendorff/opfs-ssd-timing
1•botw44•7m ago•0 comments

The Spam Economy Comes to Work

https://fffej.substack.com/p/the-spam-economy-comes-to-work
1•PretzelFisch•7m ago•0 comments

The Axis That Made the Chips

https://hoeijmakers.net/the-axis-that-made-the-chips/
1•janvdberg•8m ago•0 comments

Termux: X11 is a fledged X server built with Android NDK

https://github.com/termux/termux-x11
1•ivo8n52•8m ago•0 comments

Undigested fructose linked to anxiety and brain inflammation

https://www.psypost.org/undigested-fructose-linked-to-anxiety-and-brain-inflammation/
2•amichail•8m ago•0 comments

When Background AI Agents Become a Security Boundary Problem

https://www.originhq.com/research/background-c2-agent
1•lucasluitjes•10m ago•0 comments

Nvidia announces new AI chip for personal computers

https://www.bbc.com/news/articles/crmp9mppvzro
1•rishikeshs•12m ago•0 comments

Google's top result is 16yo when searching for "Ubuntu 24.04 install fonts"

https://www.google.com/search?q=ubuntu24.04installfonts
1•felooboolooomba•15m ago•1 comments

Thermal conductivity modulation as a mechanism of thermotolerance in tardigrades

https://royalsocietypublishing.org/rsif/article/23/238/20251033/481636/Thermal-conductivity-modul...
1•bookofjoe•18m ago•0 comments

Why Melanoma Spreads More in Middle Age

https://brieflycurious.com/why-melanoma-spreads-more-in-middle-age-a-mouse-study-points-to-the-im...
1•matkoone•18m ago•0 comments

Sixteen Kids and a Hit Man (2024)

https://nymag.com/intelligencer/article/christopher-pence-corderos-fbi-dark-web-hit-man.html
1•Michelangelo11•21m ago•0 comments

Lynching Postcard

https://en.wikipedia.org/wiki/Lynching_postcard
2•doener•26m ago•0 comments

Show HN: Postbase – 100% open source Alternative to Firebase and Supabase [video]

https://www.youtube.com/watch?v=St_kJZXZ_nE
4•harshalone•28m ago•1 comments

Rebuilding the Access Edge: Why We Replaced PPPoE with a Custom DHCP Server

https://medium.com/@mustafa.n.gaid/rebuilding-the-access-edge-why-we-replaced-pppoe-with-a-custom...
1•musnas•29m ago•0 comments

Show HN: Curtab – Each command in its own interactive terminal tab

https://github.com/rashidmya/curtab
1•rashidmya•32m ago•0 comments

China Aims A.I. At Predicting Who Could Pose a Political Risk

https://www.nytimes.com/2026/06/01/us/politics/china-ai-predicting-dissent.html
6•uxhacker•36m ago•0 comments

Show HN: Open-source sync-engine for managing websites at scale

https://github.com/gospecter/specter
1•aabergkvist•36m ago•0 comments

We entered Fixathon as hackers. We left as winners

https://layerx.xyz/blog/fixathon-win
1•supermalvo•41m ago•0 comments

Am I too pessimistic about Python's future?

2•noon-raccoon•44m ago•2 comments

Code Review Assumes an Author

https://blog.raed.dev/posts/ai-code-review/
1•Raed667•44m ago•0 comments

Show HN: Mochi – a performance-first SveltKit alternative

https://mochi.fast/
1•khromov•45m ago•0 comments

The making of iconic Clint Eastwood posters

https://twitter.com/i/status/2061246916378185742
1•Michelangelo11•46m ago•0 comments

The Rsync thing was inevitable and it's happening everywhere

https://robertjwebb.substack.com/p/the-rsync-thing-was-inevitable-and
2•haburka•46m ago•0 comments

Netflix Wiz creates app to slash AI bills, then open sources it

https://www.theregister.com/ai-ml/2026/05/31/netflix-wiz-creates-app-to-slash-ai-bills-then-open-...
2•pseudolus•53m ago•0 comments

What building payment products taught me about scalable financial infrastructure

https://www.solvimon.com/blog/five-lessons-on-building-scalable-financial-infrastructure
1•arnon•54m ago•0 comments

Australia's far-right party leads in national poll for first time

https://www.reuters.com/world/asia-pacific/australias-far-right-party-leads-national-poll-first-t...
2•KnuthIsGod•54m ago•2 comments

Are API keys too much friction for AI tools in teams?

https://intrascope.app/
1•Intrascopeapp•55m ago•0 comments