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/

She left her ex. He tracked her through a network of policing cameras

https://www.washingtonpost.com/technology/2026/08/02/how-police-officers-used-vast-network-camera...
1•pcl•1m ago•0 comments

Claude Code – Don't Attach Open File by Default

https://github.com/anthropics/claude-code/issues/63925
1•danmaz74•2m ago•0 comments

Play games with your brain signals using Octopus 16 wireless EEG device

https://www.cnx-software.com/2026/08/02/play-games-with-your-brain-signals-using-octopus-16-wirel...
2•giuliomagnifico•4m ago•0 comments

SUbstantial update to UK train mapping

https://trainmap.co.uk/map.html
1•optionalltd•9m ago•0 comments

How the Amiga Reads Floppies

https://www.techtravels.org/2008/09/how-the-amiga-reads-floppies/
1•Bluestein•9m ago•0 comments

Show HN: 8bit/cnlibs – 8bit Shadcn component library

https://8bit.cnlibs.com/
1•samke-•12m ago•0 comments

Archaeology Found Under England's Finest Fortified Manor House(Historic England) [video]

https://www.youtube.com/watch?v=W0Zj0kuylTQ
1•zeristor•12m ago•0 comments

Syzygy – Package and version integration knowledge as reusable CLI plugins

https://syz.sh
1•viaadus•12m ago•0 comments

Show HN: Syncular – offline-first SQL sync with TypeScript and Rust cores

https://github.com/syncular/syncular
1•quambo•14m ago•0 comments

Serving a 4GB video from Postgres: 2M rows in pg_largeobject

https://www.youtube.com/watch?v=pfu8OoCIU6g
1•navs•17m ago•0 comments

Show HN: Vein, a minimalist open-source resource management game

https://d2ykijtrvb890q.cloudfront.net/
1•thevahidal•18m ago•0 comments

US bank places trust in ransomware crew that promised to delete its data

https://www.theregister.com/cyber-crime/2026/07/31/us-bank-places-trust-in-ransomware-crew-that-p...
2•chrisjj•19m ago•0 comments

Entertainment Breakdown: Medium's Surging Pop-Culture Publication

https://medium.com/theentertainmentbreakdown/entertainment-breakdown-mediums-surging-pop-culture-...
1•raynchad•22m ago•1 comments

Freedom of Thought: The Fast-Growing Medium Publication That's Here to Stay

https://medium.com/freedomofthought
1•raynchad•24m ago•1 comments

Ask HN: Am I the only one getting so many cursor ads?

1•alexander2002•27m ago•1 comments

JSON Feed Version 1.1

https://www.jsonfeed.org/version/1.1/
1•robalni•27m ago•0 comments

Ok that's a better RPi project – Lego submarine [video]

https://www.youtube.com/shorts/2U5XBuQAHpA
2•lifeisstillgood•31m ago•0 comments

Typewriter Art [video]

https://www.youtube.com/shorts/gEoj6zURU6c
1•lifeisstillgood•35m ago•0 comments

Estonia, the Country of the Fit and the Wit

https://optimizedbyotto.com/post/estonia-well-governed-country/
1•jruohonen•41m ago•0 comments

Falling in and Out of Love with Esperanto

https://www.theguardian.com/education/2026/jul/31/falling-in-and-out-of-love-with-esperanto
1•theanonymousone•46m ago•0 comments

RowLoom – clean up messy CSVs, no signup for a one-off file

https://rowloom.com/
1•tzandarica•47m ago•0 comments

EVE Online but for Hermes and OpenClaw agents: MMORPG your agents can play

https://github.com/shehryarsaroya/agent-eve
1•runrunlobster•47m ago•1 comments

Hawaii's Bake Stands

https://www.310networks.com/posts/hawaiis-bake-stands/
1•kookster310•50m ago•0 comments

Show HN: Bor – Open-source policy management for Linux desktops

https://getbor.dev/blog/2026-08-02-bor-v080-release/
1•eniac111•56m ago•0 comments

I Built Handysuite as a Native Apple App (and Skipped Cross-Platform)

https://medium.com/@chanaka3d/why-i-built-handysuite-as-a-native-apple-app-and-skipped-cross-plat...
1•chanaka3d•1h ago•0 comments

AirLLM: Inference 2.8T Kimi K3 on a single 4GB GPU

https://github.com/lyogavin/airllm
1•maxloh•1h ago•0 comments

Ask HN: When will ChatGPT Voice be able to control my phone?

1•spapas82•1h ago•1 comments

A daily estimation game where the crowd's answer fights an AI

1•holdthelineworl•1h ago•0 comments

The time filter in Google Search broke a few days ago

https://mastodon.online/@mwichary/117023736804129342
10•latexr•1h ago•3 comments

AGI Singer: Buddy, I Need an AGI Handover Framework

https://medium.com/@miho999lv/agi-singer-buddy-i-need-an-agi-handover-framework-7253cafb220e
1•miho999lv•1h ago•0 comments