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

Meta Buys AI Startup Manus, Adding Paying Users

https://www.wsj.com/tech/ai/meta-buys-ai-startup-manus-adding-millions-of-paying-users-f1dc7ef8
1•LopRabbit•1m ago•0 comments

We Debug Live Kernels Using Drgn – You Can Too

https://blogs.oracle.com/linux/drgn-live-kernel-debug
1•tanelpoder•2m ago•0 comments

Prompt Engineering from First Principles

https://medium.com/@programmerraja/prompt-engineering-from-first-principles-the-mechanics-they-do...
1•programmerraja•3m ago•0 comments

New 'cloaking device' concept to shield sensitive tech from magnetic fields

https://www.eurekalert.org/news-releases/1110585?
1•walterbell•3m ago•0 comments

Cursor-Mem Now Available Claude-Mem 8.5.0

https://twitter.com/Claude_Memory/status/2005856998919700833
1•thedotmack•6m ago•1 comments

Show HN: C/C++ source code graph RAG based on Clang/clangd

https://github.com/2015xli/clangd-graph-rag
1•artigent•8m ago•0 comments

The Case for Firebase in 2026

https://daywards.com/media/the-case-for-firebase/the-case-for-firebase-in-2026
1•daywards•8m ago•0 comments

Congress.gov User Interview Update and Call for More Volunteers

https://blogs.loc.gov/law/2025/12/congress-gov-user-interview-update-and-call-for-more-volunteers/
1•m-hodges•13m ago•0 comments

Show HN: Cascade – AI agent that optimizes your ads across channels

https://cascaded.ai/en/
1•Kazza_cascade•13m ago•0 comments

The Case for Firebase in 2026

1•daywards•14m ago•0 comments

Show HN: Self Hosted Claude Code Runner

https://github.com/ericvtheg/claude-code-runner
1•ericvtheg•17m ago•0 comments

Meta Acquires Manus

https://www.cnbc.com/2025/12/30/meta-acquires-singapore-ai-agent-firm-manus-china-butterfly-effec...
2•carlual•17m ago•0 comments

Texas community votes no on incorporating to fight Bitcoin mine

https://www.texastribune.org/2025/11/05/texas-hood-county-bitcoin-noise-city-vote-fail/
2•walterbell•19m ago•0 comments

EpisodeElf: A simple, free, plugable tracker for TV shows

https://episodeelf.com/
1•thunderbong•19m ago•0 comments

How I made a tech support AI Agent that troubleshoots tickets using the Grok API

https://www.youtube.com/watch?v=ZK-R9LbOHhI
1•erikbatista42•23m ago•0 comments

Meta Superintelligence Labs acquires Manus AI for –$4B, 9 months after launch

https://news.smol.ai/issues/25-12-29-meta-manus/
1•swyx•24m ago•1 comments

Walmart Leaving the New York Stock Exchange for Nasdaq in Rebranding Effort

https://www.npr.org/2025/12/02/nx-s1-5619786/walmart-leaving-the-new-york-stock-exchange-for-nasd...
1•LopRabbit•31m ago•0 comments

China's Push to Master the Arctic Opens an Alarming Shortcut to U.S.

https://www.wsj.com/world/china-arctic-military-submarines-b4e988b9
5•JumpCrisscross•32m ago•0 comments

My 2025 AI Developer Year in Review

https://scottw.com/2025-ai-developer-year/
1•Kerrick•36m ago•0 comments

Chinese AI 'tiger' Zhipu edges towards Hong Kong listing expected to raise $300M

https://www.scmp.com/business/article/3337171/chinese-ai-tiger-zhipu-edges-towards-hong-kong-list...
2•doppp•47m ago•0 comments

My Self

2•yigojpnyc•54m ago•1 comments

Baltimore homicides declined furthest, fastest, could reach a 48-year low

https://www.thebanner.com/community/criminal-justice/baltimore-homicides-decline-48-year-low-U3UF...
3•xqcgrek2•55m ago•0 comments

Show HN: I built an MCP server to trade Robinhood through Claude Code

https://github.com/trayders/trayd-mcp
2•teamtrayd•58m ago•2 comments

Show HN: Endpoint State Policy – Policy as Data

https://github.com/scanset/Endpoint-State-Policy
1•scanset•1h ago•1 comments

Show HN: Signing Room – Stateless Bitcoin Multisig Coordinator

https://signingroom.io
3•scarlin90•1h ago•0 comments

I made a simple API testing framework [Alpha]

https://github.com/cd-4/yapitest
1•cd-4•1h ago•1 comments

Value Investing Is Struggling to Remain Relevant (2020)

https://www.economist.com/briefing/2020/11/14/value-investing-is-struggling-to-remain-relevant
1•jcartw•1h ago•1 comments

Next-Gen Big Data Dashboards – For All Industries

https://dashtera.com/
1•abhimattoria•1h ago•0 comments

The Prime IDs of Hacker News

https://dosaygo-studio.github.io/prime-news/?filter=fermat&p=1
1•keepamovin•1h ago•0 comments

Decades-old mystery solved as scientists identify what makes ice slippery

https://www.thebrighterside.news/post/decades-old-mystery-solved-as-scientists-identify-what-real...
3•thunderbong•1h ago•1 comments