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/

The AI bubble is popping; we just don't know it yet

https://www.theregister.com/ai-and-ml/2026/08/03/the-ai-bubble-is-already-popping-we-just-dont-kn...
1•Bender•26s ago•0 comments

ERP and MES Integration for US Pharma Manufacturers

https://geekyants.com/blog/erp-and-mes-integration-for-us-pharma-manufacturers-a-roadmap-to-achie...
1•varda_62892•2m ago•0 comments

The Grass Is Greener

https://www.bassfinity.com/blog/the-grass-is-greener-reading-summer-vegetation
1•jequals5•2m ago•0 comments

Show HN: Ccbeam – Teleport your Claude Code sessions to and from the cloud

https://github.com/sahilmahendrakar/ccbeam
1•smahendrakar•3m ago•0 comments

North Korea NullReceiver Hides Malware in NPM

https://opensourcemalware.com/blog/nullreceiver-dprk-c2-technique
2•6mile•3m ago•1 comments

How Europeans are struggling to balance work and personal time

https://www.euronews.com/business/2026/08/03/how-europes-working-day-is-increasingly-encroaching-...
1•rustoo•7m ago•0 comments

Show HN: Analytics Tycoon: I built an Age of Empires like game for data

https://analytics-tycoon.netlify.app/
1•12ian34•7m ago•0 comments

Ask HN: Future of junior level software developers outside US and UK

1•shashubansal247•9m ago•0 comments

Valetudo Camera Streaming (FOSS for Vacuum Robots)

https://github.com/Hypfer/Valetudo/discussions/2547
1•gempir•9m ago•0 comments

Before Plug and Play Worked

https://comuniq.xyz/post?t=1488
1•01-_-•9m ago•0 comments

Show HN: AgentCodeGUI – Multi-Account Desktop GUI for Claude Code and Codex

https://github.com/UnrealFactory/AgentCodeGUI
1•asdsa112•11m ago•0 comments

The Potomac River Midair Collision

https://admiralcloudberg.medium.com/reaping-the-whirlwind-inside-the-potomac-river-midair-collisi...
1•mplanchard•18m ago•0 comments

Ollee Watch: giving a 30-year-old Casio A158W a new life

https://www.kulman.sk/en/casio-a158w-ollee-watch/
2•ig0r0•18m ago•0 comments

Wolfpack – Private control room for coding agents

https://github.com/almogdepaz/wolfpack
2•wolfmaster•20m ago•0 comments

The Catholic Church's Progressive Revival

https://harpers.org/archive/2026/08/radical-reformation-jack-hanson-catholic-church-progressive/
1•mplanchard•24m ago•0 comments

What are your Thoughts on AI Agents?

1•Harish_0089•26m ago•0 comments

Codes, Chess and Kubrick: The Life of Jack Good – GCHQ

https://www.gchq.gov.uk/information/codes-chess-and-kubrick-life-jack-good
1•rbanffy•28m ago•2 comments

Show HN: A beautiful web app for writing novels and stories

https://github.com/jpmoo/brigid
2•jpmoo•29m ago•0 comments

Cell Network Is Learning to See: ISAC Explained

https://mkadri85.github.io/blog/isac-cell-towers-as-sensors/
1•Mkadri•29m ago•0 comments

Critical CVE issued for hallucinated SQLite vulnerability

https://research.jfrog.com/post/sqlite-critical-cves-or-llm-slops/
51•ymir_e•30m ago•9 comments

Scientists find method to convert factory CO2 emissions directly into fuel

https://adelaide.edu.au/about/news/2026/new-technology-could-turn-dirty-factory-exhaust-directly-...
2•giuliomagnifico•34m ago•0 comments

Twelve Years Without a VPN

https://khessin.de/twelve-years-without-a-vpn/
1•truxs•34m ago•0 comments

Xkcd: Earth Temperature Timeline

https://xkcd.com/1732/
7•thunderbong•34m ago•1 comments

Knowledge Collapse

https://www.bostonreview.net/articles/knowledge-collapse/
1•danielam•35m ago•0 comments

Reality cannot be turned into mathematics

https://iai.tv/articles/reality-cannot-be-turned-into-mathematics-auid-3529
2•danielam•35m ago•1 comments

Steam Deck LCD battery returns to iFixit at $130, price increased by 63%

https://videocardz.com/newz/steam-deck-lcd-battery-returns-to-ifixit-at-130-price-increased-by-63
2•HelloUsername•37m ago•0 comments

New Sony Patent Detects When You're Alone, Then Serves You Content

https://patentlyze.com/patent/sony-solitude-detection-personalized-content/
1•Dfol•39m ago•0 comments

Sci-fi authors Scalzi and Stross decry AI's dystopian impact on their craft

https://www.theregister.com/ai-and-ml/2026/08/03/sci-fi-authors-scalzi-and-stross-decry-ais-dysto...
1•pseudolus•41m ago•0 comments

9front "This Was Supposed to Be Fun" Released

https://9front.org/releases/2026/08/02/0/
5•birdculture•41m ago•0 comments

12 Boards One Script

https://www.atomic14.com/2026/08/03/twelve-dev-boards-from-one
1•scott01•42m ago•0 comments