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

Comments

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

Show HN: I built an AI that generates full-stack apps in 30 seconds

https://github.com/OrusMind/Orus-Builder---Cognitive-Generation-FullStack
1•TulioKBR•1m ago•0 comments

Surviving Startups as an Engineering Manager

https://reluctantleadership.substack.com/p/surviving-startups-as-an-engineering
1•oxygenfoxx•2m ago•0 comments

I Loved Being Social. Then I Started Talking to a Chatbot

https://www.wsj.com/tech/ai/ai-friends-socialization-chatbot-acb4dbf5
1•geox•3m ago•0 comments

The Key to the Problem Is to Find the Key Problem

1•mazzystar•4m ago•0 comments

A11y.css

https://ffoodd.github.io/a11y.css/
1•todsacerdoti•5m ago•0 comments

Internet Archive's legal fights are over, but its founder mourns what was lost

https://arstechnica.com/tech-policy/2025/11/the-internet-archive-survived-major-copyright-losses-...
1•LorenDB•6m ago•0 comments

How I Run a $40k-per-Month Manufacturing Line from Home [video]

https://www.youtube.com/watch?v=RyKvEcgcswg
1•teleforce•10m ago•0 comments

We need to talk about ethical diversity

https://hollisrobbinsanecdotal.substack.com/p/ethical-diversity
1•HR01•12m ago•0 comments

Healthiest Protein Bar

https://www.5ht.com/p/protein-bar-challenge
1•derekflanzraich•13m ago•1 comments

What $1B Looks Like

https://onebilliondollars-z2rnw.ondigitalocean.app/
1•skx001•16m ago•0 comments

Metaverse in 2026

1•Jsttan•16m ago•0 comments

Agentic AI for Law is the #1 Sector

https://www.startuphub.ai/ai-news/technology/2025/7-essential-ai-tools-for-small-law-firms-2025-g...
1•fasthightimess•17m ago•0 comments

Wiblion – WordPress Hosting made easy

https://wiblion.com/
1•wbn•17m ago•1 comments

Ladybird browser update (October 2025) [video]

https://www.youtube.com/watch?v=ZO_PZJ6Ekao
1•exploraz•17m ago•0 comments

OSS Alternative to Open WebUI – ChatGPT-Like UI, API and CLI

https://github.com/ServiceStack/llms
2•mythz•19m ago•0 comments

World’s largest heat pump under development in Germany

https://www.pv-magazine.com/2025/10/31/worlds-largest-heat-pump-under-development-in-germany/
2•rustoo•19m ago•0 comments

Britain FINES woman for pouring coffee down the drain

https://www.petersweden.org/p/britain-fines-woman-for-pouring-coffee
1•bilsbie•21m ago•0 comments

Cows Suddenly Collapsing After Bovaer – By Peter Imanuelsen

https://www.petersweden.org/p/cows-suddenly-collapsing-after-bovaer
1•bilsbie•22m ago•0 comments

The Symbiosis of Rust and Arm: A Conversation with David Wood

https://filtra.io/rust/interviews/arm-sep-25
1•mooreds•24m ago•0 comments

AI makes you smarter but none the wiser

https://www.sciencedirect.com/science/article/abs/pii/S0747563225002262
2•mooreds•28m ago•1 comments

Conifer's iron magnet electric motors cut China out of the picture

https://newatlas.com/technology/conifer-iron-magnet-electric-motors/
2•f1shy•28m ago•0 comments

Understanding traffic

https://dr2chase.wordpress.com/
1•kunley•29m ago•0 comments

Working Past 100? In Japan, Some People Never Quit

https://www.nytimes.com/2025/11/01/world/asia/japan-work-job-retirement-centenarian.html
4•mooreds•29m ago•0 comments

Data Brokers Know Everything About You

https://www.privacyguides.org/videos/2025/10/28/data-brokers-know-everything-about-you/
2•freddyym•30m ago•0 comments

A Soiree into Symbols in Ruby

https://tech.stonecharioteer.com/posts/2025/ruby-symbols/
2•stonecharioteer•33m ago•0 comments

Quantum Leap

https://quantum-leap.surge.sh/
1•freespirt•33m ago•0 comments

Kimberly-Clark to acquire Kenvue (Tylenol maker) in $48.7B deal

https://www.cnbc.com/2025/11/03/kimberly-clark-to-acquire-kenvue.html
1•jocho12•33m ago•1 comments

Royal Navy installs quantum clock in robotic submarine

https://newatlas.com/military/royal-navy-quantum-clock-submarine/
1•Brajeshwar•34m ago•0 comments

Show HN: AikiPedia – An Open-Source AI-Enhanced Interface for Wikipedia

https://aikipedia.vercel.app/
1•grenishrai•36m ago•0 comments

Control structures in programming languages: from goto to algebraic effects

http://xavierleroy.org/control-structures/
1•SchwKatze•37m ago•0 comments