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/

Vinod Khosla: We will need a new tax code for the wealth AI creates

https://www.ft.com/content/b277360e-bf23-4366-afd7-acab940f66b7
1•marojejian•35s ago•1 comments

NeuroMemor –- open source Python AI

https://github.com/erabytse/NeuroMemor
1•takouzlo•47s ago•0 comments

Show HN: Single Access Memory – Write in Markdown, read once, watch it dissolve

https://single-access-memory.onrender.com/
1•AnonymousThree•1m ago•0 comments

The Download: soccer's data Renaissance and China's big nuclear plans

https://www.technologyreview.com/2026/06/11/1138809/the-download-soccer-football-data-analytics-c...
1•joozio•1m ago•0 comments

Degree apprenticeships in engineering, do they exist?

1•adamofeden•2m ago•0 comments

What Is a Vertical Tab?

https://stackoverflow.com/questions/3380538/what-is-a-vertical-tab
1•basilikum•3m ago•0 comments

The First Taste Is Free

https://atlasprimeai.substack.com/p/the-first-taste-is-free
1•atlasprimeai•6m ago•0 comments

Homebrew CPU

https://www.homebrewcpu.com/
2•hggh•8m ago•0 comments

Secure Self-Hosted Infrastructure

https://app.localmail.uk/
1•peter_retief•9m ago•0 comments

Fable 5 Ported the Ladybird Browser to WebAssembly in One Shot and It Cost $552

https://twitter.com/HeyPuter/status/2065114471589089729
2•ent101•9m ago•1 comments

Ultimatum: Warrant Requirement or Bust

https://www.eff.org/deeplinks/2026/06/702-ultimatum-warrant-requirement-or-bust
1•Brajeshwar•10m ago•0 comments

CCTV – See which Claude Code agent needs you, from the menu bar

https://github.com/manelrv/CCTV
1•manelrv•11m ago•0 comments

Meta Deletes Face-Recognition System from Its Smart Glasses App

https://www.wired.com/story/meta-removes-face-recognition-code-meta-ai-app-smart-glasses/
1•ameypandey•13m ago•0 comments

Visa Vulnerability Agentic Harness for Project Glasswing

https://github.com/visa/visa-vulnerability-agentic-harness
1•guessmyname•13m ago•0 comments

The only scalable delete in Postgres is DROP TABLE

https://planetscale.com/blog/the-only-scalable-delete
1•hollylawly•14m ago•0 comments

Show HN: Not Another Vibe-Coded YouTube Playlist Creator

https://skipvids.com/generateplaylist
1•01jonny01•14m ago•0 comments

AI is eating your moat

https://josepvidal.dev/blog/ai-is-eating-your-moat
2•jvidalv•17m ago•2 comments

Axross – multiprotocol and30 Qt filemanager for Linux

https://pypi.org/project/axross/
1•dash0r•17m ago•1 comments

Making a better Social Media

https://amrshawky.com/posts/making-a-better-social-media/
1•amr_shawky•17m ago•0 comments

El Niño forms in Pacific as experts say it will likely turbocharge extreme wx

https://www.theguardian.com/us-news/2026/jun/11/el-nino-forms-historic-strength
4•howard941•19m ago•0 comments

An Agent Holds the Fort: Three Days of Autonomous Compiler Work

https://rue-lang.dev/blog/an-agent-holds-the-fort/
1•pekim•20m ago•0 comments

Which AI prototyping tools can export a self-contained HTML file?

https://productnow.ai/blogs/extracting-html-from-ai-prototyping-tools
1•kadhirvelm•20m ago•1 comments

Show HN: AgentStore – a self-hosted datastore for AI agent teams

https://github.com/guyweissman/agentstore
1•guyweiss•22m ago•0 comments

Dealership revoked offer to buy back customer's BMW, blaming wayward AI chatbot

https://www.cbc.ca/news/business/ai-chatbot-bmw-dealership-9.7230226
5•cf100clunk•24m ago•2 comments

Galaxy-killing wind discovered in the early universe

https://ras.ac.uk/news-and-press/research-highlights/galaxy-killing-wind-discovered-early-universe
2•layer8•25m ago•0 comments

The Unbundling and Bundling of the PaaS Market

https://redmonk.com/sogrady/2026/06/10/paas-unbundling/
2•RyeCombinator•25m ago•0 comments

Robotaxis almost happened in 1964–with help from the U.S. government

https://www.popsci.com/technology/robotaxis-personal-rapid-transit-history/
3•Vaslo•26m ago•0 comments

How HN: I gave Claude live Intel on 3k AI companies (mentions, funding)

https://github.com/altmbr/teahose-mcp
2•altmbr•26m ago•0 comments

Ona Is Joining OpenAI

https://ona.com/stories/ona-joins-openai
8•ilreb•26m ago•0 comments

Show HN: LLMForge – Orchestrate your LLM pipeline. Locally

https://www.llmforge.app
3•gokulnair2001•26m ago•0 comments