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/

The end of startups

https://evanjconrad.com/posts/end-of-startups
1•Anon84•3m ago•0 comments

An Explainer on the eMudhra Fiasco

https://finshots.in/markets/an-explainer-on-the-emudhra-fiasco/
1•vismit2000•7m ago•0 comments

Show HN: Saltmere, a browser-based city builder about sea-level rise

https://saltmere.thefinotin.com
1•saptashwa•7m ago•1 comments

A graphic explaining the drone rescue of a wounded Ukrainian soldier

https://www.reuters.com/graphics/UKRAINE-CRISIS/DRONE-RESCUE/znvngmqxzpl/
2•giuliomagnifico•10m ago•0 comments

The Current Situation of the Intensifying RAM Crisis

1•StizzurpXDD•10m ago•0 comments

I built COLAX – a campus app for NIT Warangal

https://play.google.com/store/apps/details?id=com.priyal.colax&hl=en_US
1•Priyalgang•13m ago•0 comments

The DNSSEC Root Signing Ceremony

https://www.cloudflare.com/learning/dns/dnssec/root-signing-ceremony/
1•maxall4•13m ago•0 comments

Show HN: Emails on Your Mac's Notch

https://gotemail.net/
3•nazbasho•14m ago•2 comments

A first for CRISPR: prime editing alters DNA directly in the human body

https://www.nature.com/articles/d41586-026-03371-x
1•frostbyte7•14m ago•0 comments

Owning C types from Rust code

https://lwn.net/Articles/1099015/
1•signa11•16m ago•0 comments

EU planned to scrap clock changes. Why are they still happening? – Euronews

https://www.euronews.com/2026/10/22/eu-planned-to-scrap-clock-changes-why-are-they-still-happening
3•xbmcuser•16m ago•0 comments

Show HN: Stenograf – Free offline transcription and translation for Android

https://play.google.com/store/apps/details?id=audio.soniqo.stenograf&hl=en_US
1•aufklarer•16m ago•0 comments

GCC development with large-language models

https://lwn.net/Articles/1098672/
1•signa11•17m ago•0 comments

Show HN: Audimind – Create audiobooks in one AI-powered workspace

https://www.audimind.ai
1•pagepeng•17m ago•0 comments

Why is AI-generated language so hard to understand?

https://arxiv.org/abs/2610.29162
2•Anon84•18m ago•0 comments

Cutting our inference bill by 68% by being obsessive about optimization

https://blog.cloudflare.com/obsessive-inference-optimization/
1•ryanskidmore•19m ago•0 comments

The First Gist on GitHub

https://gist.github.com/schacon/1
1•amanverasia•19m ago•0 comments

Designing an AI serving harness built to last

https://www.technologyreview.com/2026/10/22/1146109/designing-an-ai-serving-harness-built-to-last/
1•joozio•20m ago•0 comments

A neat trick I found for reusing physical memory

https://sebsite.pw/w/20260728-cow.html
1•signa11•21m ago•0 comments

Please Don't Mess with Links

https://maurycyz.com/misc/real_links/
1•stosssik•22m ago•0 comments

GitHub – mamund/APIs-and-agents: service choreography demos

https://github.com/mamund/apis-and-agents
1•fagnerbrack•22m ago•0 comments

Show HN: A TypeScript remake of Chinese Paladin (1995), now in English

https://github.com/IllegalCreed/type-pal
1•illegalscreed•26m ago•0 comments

Running the Patched PHP 8.3.36 on Ubuntu 20.04 Servers with Docker

https://www.vincentschmalbach.com/running-patched-php-8-3-36-ubuntu-20-04-docker/
1•vincent_s•26m ago•0 comments

Show HN: RAG – Run and Gun with Style

https://rag.lipp1010.workers.dev
1•fitz2001•27m ago•0 comments

Show HN: Swurf – Swipe through the real web

https://swurf.org/
1•webtjb096•28m ago•0 comments

Classic RTS games in browser

https://vivalarts.com/
1•upcoming-sesame•29m ago•0 comments

10x Engineer (AI Psychosis)

https://www.youtube.com/watch?v=WV6A1Zf3F2Q
2•vismit2000•30m ago•0 comments

Show HN: Hlas-1: open-weight 3B params TTS with frontier performance

https://huggingface.co/cekal/hlas-1
2•vojtechcekal•31m ago•0 comments

LessMi – A Windows Rat in Python, Controlled Through Discord

https://github.com/MateAGYT/LessMi
1•mateag•37m ago•0 comments

Whistle speech-to-text running offline on a 16mb ESP32

https://github.com/andrisgauracs/whistle-esp32
1•rfarley04•37m ago•0 comments