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/

Anthropic: AI helps break the cost barrier to COBOL modernization

https://claude.com/blog/how-ai-helps-break-cost-barrier-cobol-modernization
1•aquir•1m ago•0 comments

"Just a little detail that wouldn't sell anything"

https://unsung.aresluna.org/just-a-little-detail-that-wouldnt-sell-anything/
1•bobbiechen•4m ago•0 comments

Trolley: Run Terminal Apps Anywhere

https://github.com/weedonandscott/trolley
1•todsacerdoti•6m ago•0 comments

A website for you to sell equity in your micro-SaaS

https://openstartuphub.com/
1•JasonHEIN•6m ago•0 comments

Russia investigating Telegram founder Durov as part of criminal case

https://www.reuters.com/business/media-telecom/russia-investigating-telegram-founder-durov-part-c...
1•gdrift•8m ago•0 comments

Xiaoyin Qu on X: "Stanford CS grads can't find jobs right now."

https://twitter.com/quxiaoyin/status/2025977959195005149
1•doppp•8m ago•0 comments

Indistinguishable from Magic: Manufacturing Modern Computer Chips

https://www.youtube.com/watch?v=NGFhc8R_uO4
1•pinkmuffinere•11m ago•0 comments

I'm building fitness SaaS – learning about pricing psychology in India

1•waaznfit•12m ago•0 comments

Sigma, camera and lens manufacturer, begins rice cultivation in the Aizu region

https://www.sigma-global.com/en/news/2026/02/24/012026/
1•10729287•14m ago•0 comments

How HN: Invariant Governance – Deterministic governance for autonomous systems

https://invariant-governance.com
1•bot-in-the-loop•17m ago•1 comments

Show HN: I built an AI Voice note taker transcriber

https://apps.apple.com/us/app/gist-transcribe-audio-to-text/id6758212955
1•bubbly_snow•19m ago•0 comments

The Picture They Paint of You

https://ferd.ca/the-picture-they-paint-of-you.html
1•donutshop•21m ago•0 comments

Components.build: open-source standard for modern, composable and accessible UI

https://www.components.build/
1•handfuloflight•22m ago•0 comments

The Market for Marriage

https://worksinprogress.co/issue/marriage-customs-very-different-from-ours/
2•ciju•23m ago•0 comments

LipoVive Supplement: Activate Your Metabolism and Burn Fat Naturally

https://www.morningstar.com/news/accesswire/1138075msn/lipovive-reviews-shocking-2026-report-what...
2•hanxpalz•24m ago•1 comments

Explaining AI Chess for Humans

https://andys.blog/p/1c3f06df-ca88-4eff-b472-44cd23b45f29/
2•andytratt•25m ago•0 comments

EverythingQuickSearch: Get Everything Search Inside Windows Start Mwnu

https://github.com/PinchToDebug/EverythingQuickSearch
2•thunderbong•30m ago•0 comments

Show HN: Multi-Agent Simulations for Assumption Testing and Analysis (Free)

https://www.nichesim.com/
3•justincxa•31m ago•0 comments

We scaled our AI Assistant to use virtually unlimited tools

https://gaia-fork-oz2l3yz60-gaia-2.vercel.app/blog/how-tool-calling-works
3•aryanranderiya•33m ago•0 comments

Show HN: Chemistry Lab Simulator (for AS Level)

https://cambridge-chem-lab.onrender.com/
2•sriram_iyengar•35m ago•1 comments

I got tired of how bloated design tools have became.

2•epic_ai•36m ago•0 comments

Downsizing Is Bonkers?

1•downsizer•37m ago•1 comments

Show HN: Cord – Constitutional AI enforcement engine for autonomous agents

https://github.com/zanderone1980/artificial-persistent-intelligence
2•Alexpinkone•37m ago•1 comments

The Absolute Insider Mess of Prediction Markets

https://philippdubach.com/posts/the-absolute-insider-mess-of-prediction-markets/
1•toomuchtodo•41m ago•0 comments

Pace Layering: How Complex Systems Learn and Keep Learning (2018)

https://longnow.org/ideas/pace-layers/
1•walterbell•43m ago•0 comments

The 'botlash' movement is gaining momentum

https://www.ft.com/content/ecead6b9-eb42-4a85-bd33-073c659e84bf
1•johntfella•44m ago•0 comments

Show HN: BrokenClaw – RCE in OpenClaw via Gmail Hook

https://brokenclaw.eu
2•veganmosfet•44m ago•1 comments

Skill Synthesis

https://cra.mr/skill-synthesis/
2•Olshansky•46m ago•0 comments

Firefox 148 Launches with AI Kill Switch Feature and More Enhancements

https://serverhost.com/blog/firefox-148-launches-with-exciting-ai-kill-switch-feature-and-more-en...
33•shaunpud•51m ago•5 comments

Show HN: AgentBudget – Real-time dollar budgets for AI agents

https://github.com/sahiljagtap08/agentbudget
4•sahiljagtapyc•52m ago•2 comments