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/

Phel v0.36.0 – Lisp on PHP, now with numeric tower and first-class Vars

https://github.com/phel-lang/phel-lang/releases/tag/v0.36.0
1•Chemaclass•1m ago•1 comments

Ask HN: How are you handling QA being bottlenecked with more AI-generated PRs?

2•softneon•2m ago•0 comments

30x faster than Prometheus: How we rebuilt ES as a leading columnar datastore

https://www.elastic.co/search-labs/blog/elasticsearch-columnar-metrics-engine-30x-faster-prometheus
2•yla92•7m ago•0 comments

The Download: the tech reshaping IVF and the rise of balcony solar

https://www.technologyreview.com/2026/05/07/1136956/the-download-ivf-tech-balcony-solar/
1•joozio•10m ago•0 comments

ClojureScript Gets Async/Await

https://clojurescript.org/news/2026-05-07-release
1•Borkdude•15m ago•0 comments

Containers Aren't Just Linux Processes

https://labs.iximiuz.com/tutorials/oci-containers-explained
1•birdculture•16m ago•0 comments

Show HN: I'm building a tiny WordPress plugin on top of my open source software

1•darkhorse13•17m ago•0 comments

QBE – Compiler Back End

https://c9x.me/compile/
1•smartmic•19m ago•0 comments

Moodle – open-source Learning Management System

https://moodle.org/
1•10000truths•21m ago•0 comments

British reporter gets personal YouTube account blocked

https://twitter.com/edconwaysky/status/2052349717489537472
3•jarym•23m ago•1 comments

Nintendo announces price increases for Nintendo Switch 2

https://www.nintendo.co.jp/corporate/release/en/2026/260508.html
1•razorbeamz•23m ago•0 comments

YouTube TimeWatcher – See where your YouTube time goes

https://youtubetimewatcher.com/
3•stacyz•25m ago•0 comments

At 100, Attenborough's Voice Is a Lesson in Wonder and Planetary Stewardship

https://time.com/article/2026/05/07/david-attenborough-100-birthday-prince-harry/
3•yreg•31m ago•0 comments

JSON Schema (Jsonschema)

https://datatracker.ietf.org/wg/jsonschema/about/
2•BerislavLopac•31m ago•0 comments

Museum of the Human Web

https://museum.parallel.ai/introduction?era=modern
2•kristopolous•31m ago•0 comments

TranscriptFormer: A generative cell atlas across 1.5B years of evolution

https://www.science.org/doi/10.1126/science.aec8514
2•tkaraletsos•31m ago•0 comments

Influenza a (H1N1) (2009)

https://www.bunniestudios.com/blog/2009/on-influenza-a/
3•downbad_•31m ago•1 comments

The room, not the words in it. My AI harness

https://blog.imjackofitall.com/posts/2026-04-28/
3•imjackofitall•33m ago•0 comments

Why I'm giving up on Facebook (2017)

http://blog.afandian.com/2017/01/why-i-am-giving-up-on-facebook/
6•chistev•33m ago•1 comments

Tesla Recalls Cybertruck Because Wheels May Fall Off

https://www.kbb.com/car-news/tesla-recalls-cybertruck-because-wheels-may-fall-off/
2•bjhess•35m ago•0 comments

Pitchfork: A devilishly good process manager for developers

https://pitchfork.en.dev/
2•thunderbong•41m ago•0 comments

AI-Native Hedge Funds Are Possible and Profitable Just Not the Next Unicorn

https://podium-finance.com/blog/ai-native-hedge-funds-and-yc
2•nlpnerd•42m ago•0 comments

Four sites. Four ways money was leaving the table

https://noemica.io/blog/four-ways-money-leaves-the-table
2•SebastianSosa•42m ago•0 comments

Auth Proxy Injection for LLMs

https://www.grepular.com/Auth_Proxy_Injection_for_LLMs
2•mike-cardwell•42m ago•0 comments

A Simple Ld_preload Tutorial

https://catonmat.net/simple-ld-preload-tutorial
1•gurjeet•47m ago•0 comments

Why the Future of AI Depends on Smaller Models

https://jeevan.life/posts/why-the-future-of-ai-depends-on-smaller-models.html
2•lroe•48m ago•0 comments

The agent principal-agent problem

https://crawshaw.io/blog/agent-principal-agent
1•bumbledraven•50m ago•0 comments

Show HN: Sfera – sliding puzzle in curved space (open-sourced)

https://github.com/bntre/Sfera
1•bntr•50m ago•0 comments

SubQ: Sub-quadratic LLM built for 12M-token reasoning

https://subq.ai/
3•anujbans•53m ago•0 comments

Camera

https://online-camera.com
2•ent101•57m ago•0 comments