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•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/

Apple Announces Europe's First Developer Center

https://www.macrumors.com/2026/06/03/apple-announces-first-developer-center-in-europe/
1•thm•14s ago•0 comments

ChatGPT Isn't Just Changing How We Work. It's Harming How We Think

https://thewalrus.ca/chatgpt-isnt-just-changing-how-we-work-its-harming-how-we-think/
1•debo_•1m ago•0 comments

Google's Top DMCA Sender Plateaus at 70M Takedowns per Week

https://torrentfreak.com/googles-top-dmca-sender-plateaus-at-70-million-takedowns-per-week/
1•isaacfrond•1m ago•0 comments

API/MCP to check if a physical product is legal to sell in 103 countries

https://legaldata-public.cleolabs.co/products
1•naomiehl•2m ago•0 comments

EU plots long game against US digital supremacy

https://www.politico.eu/article/eu-plots-long-game-against-us-digital-supremacy/
1•thm•2m ago•0 comments

German startup advancing compressor-free electrocaloric heat pump technology

https://www.pv-magazine.com/2026/06/02/german-startup-advancing-compressor-free-electrocaloric-he...
1•rustoo•2m ago•0 comments

Are Electrons Real?

https://physics.aps.org/articles/v19/70
1•sohkamyung•3m ago•0 comments

Amazon's Ring sued over facial recognition feature

https://www.reuters.com/legal/government/amazons-ring-sued-over-facial-recognition-feature-latest...
2•1vuio0pswjnm7•5m ago•1 comments

Show HN: Self tuning chat exposing it's semantic and agentic cache

https://chat.betterdb.com
2•kivanowbetterdb•5m ago•0 comments

I aint gonna work on Maggie's Datacenter no more [video]

https://www.youtube.com/watch?v=FbUHfsJ44x8
1•gdiamos•6m ago•0 comments

Why 374,000 Californians have dropped their Covered CA insurance

https://ktla.com/news/california/californians-drop-covered-california-health-insurance/
1•Bender•6m ago•0 comments

Browser-based image converters (WASM) and a URL image scanner

https://imagedimensions.com
1•Bishop81•6m ago•0 comments

Ask HN: Simple architecture for group messaging with no need to trust operator?

1•julienreszka•8m ago•0 comments

Open Source Appsec Scanner

https://github.com/sinewaveai/agent-security-scanner-mcp
1•dchitimalla•9m ago•0 comments

Git Has a Variable Named false_but_the_compiler_does_not_know_it

https://blog.codingconfessions.com/p/false-but-the-compiler-does-not-know-it
1•sohkamyung•10m ago•0 comments

I Wore a Smart Fart Wearable for Three Days. Here's What I Learned

https://gizmodo.com/i-wore-a-smart-fart-wearable-for-three-days-heres-what-i-learned-2000760032
1•Bender•11m ago•0 comments

Huub, modern CP+Sat solver written in Rust

https://huub.solutions/
1•knuckleheads•11m ago•0 comments

Landmark cancer trial shows success against 'undruggable' cancer

https://www.nature.com/articles/d41586-026-01760-w
1•Bender•12m ago•0 comments

Uber's $1,500/Month AI Limit Is a Useful Signal for AI Tool Pricing

https://simonwillison.net/2026/Jun/3/uber-caps-usage/
1•pdyc•12m ago•0 comments

Insaion – Automated ROS2 fleet monitoring, now with OpenTelemetry bridging

https://www.insaion.com/blog/insaion-v0-8-4-opentelemetry
1•vicmassy•12m ago•0 comments

Ask HN: Would you use a soundproof mic mask to dictate to AI in public?

1•sodakim•12m ago•0 comments

Build 2026: Union types in C#

https://build.microsoft.com/en-US/sessions/DEM304
1•pjmlp•14m ago•0 comments

Bun Has Been Converted to Rust. Now What?

https://bytecode.news/posts/2026/06/bun-has-been-converted-to-rust-now-what
8•jottinger•16m ago•0 comments

I'm going to be hated for this product

1•ravipatelCTF•16m ago•0 comments

ChartNet: A High-Quality Multimodal Dataset for Robust Chart Understanding

https://arxiv.org/abs/2603.27064
1•droidjj•18m ago•0 comments

Big Tech's Looming Capability Crisis

https://hbr.org/2026/06/big-techs-looming-capability-crisis
1•littlexsparkee•19m ago•1 comments

Show HN: Idea-to-build – a Claude brainstorm that pushes back, then builds

https://github.com/winchxyz/idea-to-build
1•winchxyz•20m ago•0 comments

Functional Programming

https://mlochbaum.github.io/BQN/doc/functional.html
2•tosh•22m ago•0 comments

Building for Voice In, Visuals Out

https://allenpike.com/2026/voice-in-visuals-out/
1•surprisetalk•22m ago•0 comments

Tech-favored candidates fell short on California's primary night

https://www.politico.com/news/2026/06/03/tech-favored-candidates-fell-short-on-californias-primar...
1•RickJWagner•22m ago•0 comments