frontpage.
newsnewestaskshowjobs

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/

Hacking a Ceiling Fan Remote with RTL-SDR and ESP32 for Home Assistant

https://hackaday.com/2026/06/28/rf-hacking-a-ceiling-fan-via-the-remote/
2•whiteblossom•1m ago•0 comments

Ornith-1.0: Self-Scaffolding LLMs for Agentic Coding

https://deep-reinforce.com/ornith_1_0.html
1•kordlessagain•1m ago•0 comments

Show HN: Borkd – Is it your code or the platform? One dashboard instead of ten

https://borkd.dev/
1•watchready•3m ago•0 comments

Node.js io_uring over napi-rs, more then 2x performance

https://github.com/avifenesh/ferrings
2•anotherCodder•3m ago•0 comments

The (new) place for thoughtful puzzles

https://www.puzzmo.com/today
1•jasonpeacock•4m ago•0 comments

Fontdue: The fastest font renderer in the world, written in pure rust

https://github.com/mooman219/fontdue
1•klaussilveira•4m ago•0 comments

Saudade: Mminimal retained-mode Windows 3.1 style GUI library written in Rust

https://github.com/roblillack/saudade/
1•klaussilveira•7m ago•0 comments

Semgrep: GLM 5.2 beats Claude in our Cyber Benchmarks

https://semgrep.dev/blog/2026/we-have-mythos-at-home-glm-52-beats-claude-in-our-cyber-benchmarks/
1•jms703•9m ago•0 comments

Mirror Project Proposal (2008)

https://webhelper.brown.edu/joukowsky/courses/13things/6689.html
1•jruohonen•9m ago•0 comments

Who Are the Fire-Tamers?

https://aeon.co/essays/who-are-the-fire-taming-healers-of-modern-france
2•Caiero•10m ago•0 comments

NASA races to save Swift telescope from falling back to Earth with daring rescue

https://phys.org/news/2026-06-nasa-swift-telescope-falling-earth.html
2•bookmtn•14m ago•0 comments

In Idaho, the next generation of US nuclear reactors nears reality

https://www.france24.com/en/live-news/20260628-in-idaho-the-next-generation-of-us-nuclear-reactor...
2•rustoo•14m ago•0 comments

Show HN: Caliper – pass@k reliability testing for Claude Code and Codex skills

https://github.com/edonadei/caliper
1•edonadei•17m ago•0 comments

Prism: An impure functional language with typed effects

https://www.stephendiehl.com/posts/prism/
1•fanf2•17m ago•0 comments

The 'Almost Homeless' Subreddit Is a Stark Glimpse at Soaring Wealth Inequality

https://www.wired.com/story/the-almost-homeless-subreddit-is-a-stark-glimpse-at-soaring-wealth-in...
2•Brajeshwar•18m ago•0 comments

We Answered 35 of Your Civ VII History Questions

https://store.steampowered.com/news/app/1295660/view/679628250084803716
2•Tomte•20m ago•0 comments

Yakuza Tattoo

https://kimurakami.com/blogs/japan-blog/yakuza-tattoo
2•jruohonen•21m ago•0 comments

How WisdomAI gets high text-to-SQL accuracy

https://www.wisdom.ai/blog/how-wisdom-gets-text-to-sql-right
1•sharva•21m ago•0 comments

Lenovo saying RAM prices may never go back to how they were

https://www.rockpapershotgun.com/oh-no-thats-lenovo-saying-they-think-these-ram-prices-will-be-th...
5•Tomte•23m ago•3 comments

Show HN: Tool to Convert PDF to a Video

https://caringmachines.com/shop/convert/pdf2vid
1•celestiallylvd1•24m ago•0 comments

Show HN: Verigate – Cryptographic authorization receipts for AI agents

https://verigate.cloud
1•heartlinmachado•26m ago•0 comments

AgentCrawl, a small self-hosted crawler for AI agents

https://github.com/JorG18/agentcrawl
1•Kenchi010•29m ago•0 comments

A 'perfect storm' points to a much smaller U.S. auto market by 2040

https://www.cnbc.com/2026/06/28/us-auto-market.html
1•toomuchtodo•29m ago•0 comments

White House Will Ad Hoc Decide Who Can Individually Access GPT-5.6

https://thezvi.substack.com/p/white-house-will-ad-hoc-decide-who
2•paulpauper•37m ago•1 comments

Movie reconstruction from mouse video cortex activity

https://www.youtube.com/watch?v=K3Hvy4CKVpg
1•bookofjoe•39m ago•0 comments

Security Baked into the JVM: Why Fork Apache River and OpenJDK?

https://blog.frankel.ch/security-baked-into-jvm/1/
1•theanonymousone•39m ago•0 comments

Central Vacuums: Spiritual, Social, Economic, and Hygienic Consequences

https://vac.bpe.xyz
5•shoes_for_thee•41m ago•3 comments

Limbic Capitalism Has Been Driving Addiction for Hundreds of Years

https://www.afterbabel.com/p/limbic-capitalism-addiction-david-courtwright
1•paulpauper•41m ago•0 comments

Roundup #83: I told you so

https://www.noahpinion.blog/p/roundup-83-i-told-you-so
1•paulpauper•41m ago•0 comments

Show HN: Bcad – An OpenSCAD-syntax CAD powered by OpenCASCADE

https://asm32.info/johnfound/bcad-openscad-syntax-with-exact-geometry
1•johnfound•41m ago•1 comments