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/

The Garbage PC

https://ounapuu.ee/posts/2026/02/02/garbage-time/
1•celsoazevedo•1m ago•0 comments

Show HN: Shoulditrustit.com – a simple, early alternative to Trustpilot

https://www.shouldItrustIt.com
1•franbetteo•2m ago•0 comments

How to Unabstract an Abstraction

https://www.jakeworth.com/posts/how-to-unabstract-an-abstraction/
1•jwworth•2m ago•0 comments

Tim Cook sold Apple's soul

https://www.loopwerk.io/articles/2026/tim-cook-sold-apples-soul/
1•kjmr•3m ago•0 comments

Sand heat storage with circulating sand reduces energy costs and CO2 emissions

https://www.heise.de/en/news/Sand-heat-storage-with-circulating-sand-reduces-energy-costs-and-CO-...
1•westurner•3m ago•0 comments

OpenClaw feels Scary now!

https://moithub.com/
1•javantanna•4m ago•0 comments

Bay Area woman loses $176K after accepting remote job she thought was Facebook [video]

https://www.youtube.com/watch?v=u4n4pWCGovI
1•mgh2•4m ago•0 comments

Schedule Across >2 Timezones

https://greatletsmeet.com/
1•marctuinier•5m ago•0 comments

Big tech is trading headcount for GPU capex

https://www.augmentedswe.com/p/tech-job-market-is-brutal
1•wordsaboutcode•6m ago•0 comments

Turn your workflow screen recording into instructional step-by-step guide

https://video2docs.com/
1•angelina200•7m ago•1 comments

Moltbook Anatomy: AI Agents Social Network Exploration

https://altsoph.substack.com/p/moltbook-anatomy-ai-agents-social
1•kirushik•7m ago•0 comments

Explicit Resource Management in JavaScript

https://allthingssmitty.com/2026/02/02/explicit-resource-management-in-javascript/
1•AllThingsSmitty•7m ago•0 comments

Why won't my team use agents? Meditations on AI agent adoption

https://12gramsofcarbon.com/p/why-wont-my-team-use-agents
1•andyjohnson0•9m ago•0 comments

Living Stingy: Why Linux Hasn't Supplanted Windows

http://livingstingy.blogspot.com/2026/02/why-linux-hasnt-supplanted-windows.html
1•speckx•9m ago•0 comments

Moltbook: After the First Weekend

https://www.astralcodexten.com/p/moltbook-after-the-first-weekend
1•gregorymichael•10m ago•1 comments

Show HN: GeoCards – An interactive wiki map built with MapLibre and OpenFreeMap

https://labs.tripgeo.com/geocards
1•tripgeo•12m ago•1 comments

Modern Websites Still Demand User-Agents

https://github.com/LadybirdBrowser/ladybird/pull/7493
2•twapi•12m ago•0 comments

MsoTrioState: Tri-state value. Has 5 possible values. Only 2 of them supported

https://fedi.lynnesbian.space/@lynnesbian/115969259564305759
3•amenghra•12m ago•1 comments

Why Airport Security Feels Random

https://yusufaytas.com/why-airport-security-feels-random/
7•yusufaytas•13m ago•0 comments

AI virus agents: what are they, how to fight them

https://www.ericburel.tech/blog/ai-virus-agent
1•eric-burel•13m ago•0 comments

Ask HN: Why do AI coding platforms force to use one model for a task?

2•NBenkovich•15m ago•0 comments

Inside Musk’s bet to hook users that turned Grok into a porn generator

https://www.washingtonpost.com/technology/2026/02/02/elon-musk-grok-porn-generator/
2•thm•16m ago•0 comments

The Dangers of "Vibe Reporting" About AI

https://calnewport.com/the-dangers-of-vibe-reporting-about-ai/
1•rroblak•18m ago•0 comments

Processes Every Business Should Automate First

https://tidbits.mende.io/p/the-5-processes-every-business-should
1•PretzelFisch•20m ago•0 comments

Why AI won't wipe out white-collar jobs

https://www.economist.com/finance-and-economics/2026/01/26/why-ai-wont-wipe-out-white-collar-jobs
1•boh•20m ago•0 comments

Pro Image Cropper Plus – Batch and Preset Image Cropping in Streamlit

https://pro-image-cropper-plus.streamlit.app/
1•Dev_Master•21m ago•1 comments

Delivery Apps Must Pay $5M in Minimum Pay Settlement with NYC

https://nyc.streetsblog.org/2026/01/30/the-mamdani-effect-three-delivery-apps-must-pay-5m-in-mini...
1•danso•22m ago•0 comments

Improving my newsletter's open rate the hard(er) way

https://cassidoo.co/post/do-not-scale-2/
1•mooreds•23m ago•0 comments

Unknown Unknowns: Identify Hidden Opportunities in the Digital World

https://medium.com/@ludjonroshi/unknown-unknowns-identify-hidden-opportunities-in-the-digital-wor...
1•onion92•24m ago•0 comments

Ask HN: Why is secure remote server access still so painful for small teams?

1•brintha•25m ago•0 comments