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/

Climate Data Scientist Explains What the Numbers Mean

https://atmos.earth/climate-solutions/this-climate-data-scientist-explains-what-the-numbers-reall...
1•bryanrasmussen•4m ago•0 comments

Show HN: Skep – live cross-device sessions for AI coding agents

https://skepagent.com/
1•Krisneo•4m ago•0 comments

F Stop (Portal prequel) leak

https://www.youtube.com/watch?v=mihs6K2ynCs
1•nailer•6m ago•0 comments

Rust on Ubuntu 2026-11

https://discourse.ubuntu.com/t/rust-on-ubuntu-2026-11/90674
1•thesuperbigfrog•7m ago•0 comments

Show HN: EchoChain to see what happens when LLMs play telephone

https://github.com/smusali/echoChain
1•smusali•8m ago•0 comments

AWS charges $36 for 500GB egress. Five providers charge $0

https://github.com/datareceipts/data-receipts/tree/main/103-egress
1•datareceipts•8m ago•0 comments

Flooding in Parts of Arizona and Colorado Prompts Evacuation Orders

https://www.nytimes.com/2026/11/01/weather/flooding-arizona-colorado-evacuations.html
1•toomuchtodo•8m ago•1 comments

Flare, Nvidia's DGX Spark Inference Engine

https://github.com/NVIDIA/spark-local-inference
1•jacquesm•12m ago•0 comments

Vathographs: Photographic depth maps as creative expression

https://vathography.com/
1•hankbond•12m ago•1 comments

Trigger.dev customer environment variables exposed

https://trigger.dev/blog/security-incident-nov-2026
3•anurag•15m ago•0 comments

Retro Gaming Has a Port-Slop Problem

https://gardinerbryant.com/retro-gaming-has-a-port-slop-problem/
3•ecliptik•18m ago•1 comments

I ported iPadOS to my Nintendo Switch

https://twitter.com/brunostjohn/status/2116805960220189013
1•brunostjohn•20m ago•0 comments

It's the world's largest passenger plane. But he fit some of it inside his home

https://www.cnn.com/2026/10/31/travel/worlds-largest-plane-partly-inside-his-home
1•mooreds•24m ago•1 comments

Woman put a potato in bowl of Halloween candy and became famous

https://onmilwaukee.com/articles/potato-halloween-candy
1•mooreds•25m ago•0 comments

SCIP Rocks

https://tanikella.ghost.io/scip-rocks/
1•thenonjay•25m ago•0 comments

Bryan Cantrill on Oxide Computer (audio)

https://www.softwaresessions.com/episodes/oxide/
1•mooreds•30m ago•0 comments

Human Exploration Across the Moon

https://nap.nationalacademies.org/resource/29401/interactive/
1•gmays•32m ago•0 comments

Lots of Python Releases for Cybersecurity Awareness Month

https://hugovk.dev/blog/2026/cybersecurity-awareness/
1•lumpa•39m ago•0 comments

Show HN: SecuBuzz – My Stack, filter security news by your vendors

https://secubuzz.com/
2•nisarg-soni•44m ago•0 comments

Facebook Ad Library

https://www.facebook.com/ads/library/
2•gregsadetsky•46m ago•0 comments

OutPost: Micropub Client for iPhone, iPad and Mac

https://jimmitchell.dev/outpost/
2•sea-gold•47m ago•0 comments

Competition in Generative AI: Evidence from Consumer Demand (NBER)

https://www.nber.org/papers/w35953
1•imakwana•51m ago•1 comments

Google's Suncatcher data centre satellite sends a haiku to Earth

https://www.theregister.com/ai-and-ml/2026/10/31/googles-ai-satellite-sends-a-very-expensive-haik...
1•Gaishan•55m ago•1 comments

Show HN: HeyGo - Cabs, freight, and ambulances in a single app

https://heygo.in/
1•sainitishbimari•1h ago•0 comments

Show HN: Better Together – AI agents team up against spam calls and texts

https://better-together.fun/
2•adamontherun•1h ago•0 comments

America on Data Centers: 10k city council comments

https://www.americansentiment.com/datacenters
10•afandrew•1h ago•6 comments

OccupySaaS

https://occupysaas.com/
5•misswaterfairy•1h ago•3 comments

Show HN: People you know, an end-to-end encrypted private Instagram replacement

https://peopleyouk.now/
1•jsbg•1h ago•0 comments

How Small Can We Slice an AI Model?

https://operator0x.com/field-notes/weights-still-need-a-home/
2•0xjosephx10•1h ago•0 comments

Egres: A Postgres-compatible database for heavy, multi-tenant workloads

https://manishrjain.com/egres/
1•osser•1h ago•1 comments