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

Comments

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

Show HN: Vibe Founding – What happens when AI handles 80% of startup execution

https://blog.clawsouls.ai/posts/vibe-founding/
1•tomleelive•55s ago•1 comments

Boston Review: A Brief History of AI Psychosis

https://www.bostonreview.net/articles/a-brief-history-of-ai-psychosis/
1•t0lo•1m ago•0 comments

Show HN: Arrival Radar

https://entropicthoughts.com/arrival-radar
2•kqr•4m ago•1 comments

How AI will change GTM?

1•imwoody•5m ago•0 comments

Show HN: Export Your YouTube Subscriptions to OPML (and Use Any RSS Reader)

https://gist.github.com/jillesvangurp/b43cc5bbdbc0a9a29c7f0944d6cc5854
1•jillesvangurp•6m ago•0 comments

When the Bubble Bursts

http://theprogrammersparadox.blogspot.com/2026/02/when-bubble-bursts.html
2•r4um•6m ago•0 comments

Spatial AI-native graph workspace

1•aXlireza•8m ago•0 comments

Show HN: MotionDesk: Physics-driven, Metal-accelerated wallpapers for macOS

1•motiondeskapp•8m ago•0 comments

Show HN: Nano Banana 2 – Sub-second AI image gen via Gemini 3.1 Flash

https://nano-banana2.me/
1•naxtsass•11m ago•0 comments

Show HN: Conduit – Automatic Port Forwarding for Docker Containers

https://github.com/Oranda-IO/Conduit
1•orandaio•11m ago•0 comments

RFC 9925: Unsigned X.509 Certificates

https://datatracker.ietf.org/doc/rfc9925/
1•raquuk•15m ago•0 comments

I used Claude AI to build this website that shows upcoming indie game festivals

https://festival-watch.vercel.app/
2•rotub•15m ago•1 comments

Chivalry Test

https://chivalryscore.com
1•onSmallMessage•15m ago•1 comments

We found 118 performance bugs across 2 PRs written with Claude Code

https://www.codeflash.ai/blog-posts/hidden-cost-of-coding-agents
4•misrasaurabh1•16m ago•1 comments

Vegetarians have 'substantially lower risk' of five types of cancer

https://www.theguardian.com/society/2026/feb/27/vegetarians-have-substantially-lower-risk-of-five...
1•plaguna•16m ago•0 comments

Man jailed after selling £7M of fake plane parts

https://www.bbc.com/news/articles/c78xz5j848vo
1•dataflow•17m ago•0 comments

Pplx-Embed: Embedding Models for Web-Scale Retrieval

https://research.perplexity.ai/articles/pplx-embed-state-of-the-art-embedding-models-for-web-scal...
1•jxmorris12•18m ago•0 comments

CoreWeave slides as surging capex, backlog risks overshadow small revenue beat

https://www.reuters.com/business/coreweave-beats-fourth-quarter-revenue-estimates-2026-02-26/
1•petethomas•24m ago•0 comments

Indian ISPs block Supabase due to a ministry order

https://twitter.com/supabase/status/2027249469545386102
1•alt-glitch•25m ago•0 comments

Google paid startup Form Energy $1B for its 30GWh, 100-hour battery

https://techcrunch.com/2026/02/26/google-paid-startup-form-energy-1b-for-its-massive-100-hour-bat...
1•epistasis•30m ago•0 comments

I stopped writing code. I only review AI-generated PRs now

https://alec.is/posts/how-i-went-from-code-reviewer-to-code-reviewer/
1•arm32•30m ago•0 comments

'Really Simple Licensing' (RSL) – Open Licensing Standard for AI Crawlers

https://en.wikipedia.org/wiki/Really_Simple_Licensing
1•evolve2k•49m ago•1 comments

The AI Transformation Framework

https://zapier.com/playbooks/ai-transformation-framework
1•swolpers•51m ago•0 comments

Shifting Security Left for AI Agents with GitGuardian MCP

https://blog.gitguardian.com/shifting-security-left-for-ai-agents-enforcing-ai-generated-code-sec...
1•umairnadeem123•51m ago•0 comments

Feature-Sliced Design

https://feature-sliced.design/
1•saikatsg•52m ago•0 comments

High Speed Rail by Country 2026

https://worldpopulationreview.com/country-rankings/high-speed-rail-by-country
2•thunderbong•54m ago•0 comments

Trend Is Concerning

https://techcrunch.com/2026/02/26/jack-dorsey-block-layoffs-4000-halved-employees-your-company-is...
1•melvinodsa•55m ago•0 comments

Show HN: I built a Chrome extension to record demo videos without editing

https://zoomflow.rovelin.com/
1•hritik7742•1h ago•0 comments

Judge says he will order Greenpeace to pay $345M in oil pipeline case

https://apnews.com/article/greenpeace-energy-transfer-dakota-access-pipeline-30bfb9939dea06f1e976...
4•e2e4•1h ago•1 comments

Model Collapse Ends AI Hype

https://www.youtube.com/watch?v=ShusuVq32hc
3•signa11•1h ago•0 comments