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•11mo ago

Comments

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

Internet down for you? X, GitHub, etc.

1•nvk•1m ago•0 comments

Trump will begin blockade of Strait of Hormuz within hours

https://www.dailymail.co.uk/news/article-15727239/Donald-Trump-Strait-Hormuz-Blockade.html
1•Bender•2m ago•1 comments

GraphAI – dual-graph $0 knowledge system with AI-native binary format

https://github.com/nehloo/graphAI
1•nehloo•2m ago•0 comments

Human Language Is the Best Programming Language

https://vanja.io/human-language-best-programming-language/
1•vpetreski•5m ago•0 comments

Externalization in LLM Agents

https://arxiv.org/abs/2604.08224
1•Anon84•5m ago•0 comments

Private Post-Training and Inference with TEEs for Frontier Models

https://www.workshoplabs.ai/blog/private-post-training
1•transpute•6m ago•0 comments

Unitree's H1 robot hits 10m/s sprint speed, getting close to 100M world record

https://www.globaltimes.cn/page/202604/1358712.shtml
1•teleforce•8m ago•0 comments

Show HN: A virtual office where you watch your AI agents code

https://github.com/ashxco/piedpiper
1•ashxsf•8m ago•0 comments

In search for a more precise cursor

https://unsung.aresluna.org/in-search-for-a-more-precise-cursor/
2•Doubleguitars•10m ago•0 comments

Cloudflare Agents week preview: What to expect

https://www.youtube.com/watch?v=nCrG-ixRoGg
1•emot•11m ago•0 comments

Unusual Behavior in Geosynchronous Orbit by Chinese Satellites, 2016–2025

https://www.csis.org/analysis/new-rhythms-geo-quantitative-analysis-unusual-behavior-geosynchrono...
1•mooreds•12m ago•0 comments

Tokyo: The Hard Life (1989)

https://www.theatlantic.com/magazine/archive/1989/03/tokyo-the-hard-life/668051/
1•mooreds•13m ago•1 comments

Should you be scared of bears when hiking in Japan?

https://www.emgoto.com/hiking-bears-japan/
1•mooreds•13m ago•0 comments

An Interview with Asana Founder Dustin Moskovitz about AI, SaaS, and Safety

https://stratechery.com/2025/an-interview-with-asana-founder-dustin-moskovitz-about-ai-saas-and-s...
1•theorchid•15m ago•0 comments

Google Stitch

https://stitch.withgoogle.com/
1•thatxliner•15m ago•0 comments

Scaling a Monolith to 1M LOC: 113 Pragmatic Lessons from Tech Lead to CTO

https://www.semicolonandsons.com/articles/scaling-a-monolith-to-1m-loc-113-pragmatic-lessons-from...
1•PaulHoule•19m ago•0 comments

Amazon vs. Perplexity AI: ACLU's Amicus Brief

https://www.aclu.org/cases/amazon-v-perplexity?document=Amicus-Brief-of-ACLU-ACLU-of-Northern-Cal...
1•StatsAreFun•20m ago•0 comments

Beside Myself at BSides OK

https://mpdc.dev/beside-myself-at-bsides-ok/
1•ParanoidRV•25m ago•1 comments

Günther Anders's Bleak Picture of the Tech-Perfected Society

https://www.thepublicdiscourse.com/2026/03/100527/
1•StatsAreFun•27m ago•0 comments

Specs over Vibes: Consistent AI Results Ft. Mark Freeman

https://motherduck.com/blog/specs-over-vibes-consistent-ai-results/
1•eigenBasis•32m ago•0 comments

KldloadOS 1.0.4 – Kubernetes on (ZFS and Cilium eBPF and WireGuard) in 15 Mins

https://kldload.com/releases/1.0.4
2•kldload•33m ago•0 comments

Most AI travel apps don't help you travel

https://navoy.io/
1•tnaaron•34m ago•0 comments

I don't want to fill out your contact form (2024)

https://adamjones.me/blog/dont-use-contact-forms/
1•JustSkyfall•40m ago•1 comments

Open Source MCP server that refines prompts from retrieval evidence

https://github.com/farukalpay/prompt-refinery
4•Zelray0•45m ago•0 comments

GitHub Copilot Session Search and Resume CLI

https://jonmagic.com/posts/github-copilot-session-search-and-resume-cli/
1•willf•47m ago•0 comments

B-trees and database indexes (2024)

https://planetscale.com/blog/btrees-and-database-indexes
1•cebert•50m ago•0 comments

DNA forensics is transforming studies of ancient manuscripts

https://www.scientificamerican.com/article/how-dna-forensics-is-transforming-studies-of-ancient-m...
1•1659447091•51m ago•0 comments

'"one" | "two" | string' autocomplete TypeScript trick

https://jcbhmr.com/2026/04/07/any-string-autocomplete-ts/
2•jcbhmr•54m ago•0 comments

Ongoing system issues w/ state distributor has Mississippi running out of liquor

https://www.washingtonpost.com/nation/2026/04/12/mississippi-liquor-sales-breakdown/
1•WarOnPrivacy•59m ago•1 comments

AI Integration Pack: 9 Production Python Modules for Payments, CRM, SMS

https://etilabs.gumroad.com/l/gseyqv
1•DruEdwards•1h ago•0 comments