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/

I'm Done with Mullvad

https://moonwriting.blog/i-m-done-with-mullvad
1•lylo•3m ago•0 comments

Vibecoded Scheme Implementation

https://kaappi-lang.org/
1•baijum•4m ago•0 comments

Nolan's Odyssey – A technical analysis by a nitpicky Classics student

https://earlrambles.pagecord.com/nolans-odyssey-a-very-technical-analysis-by-a-very-nitpicky-clas...
1•lylo•5m ago•0 comments

Show HN: Fluxnation, the Fastest FLUX.1 Execution Kernel

https://github.com/ULT7RA/FLUXNATION
1•KnoxProtocol•7m ago•0 comments

Taking OCaml and Eio for a Spin

https://mattjhall.co.uk/posts/taking-ocaml-eio-for-a-spin.html
1•mattjhall•9m ago•0 comments

The Java Story | Official Documentary

https://www.youtube.com/watch?v=ZqGSg4b_cZA
2•doppp•9m ago•0 comments

Distro Fighter – web browser game

https://distrofighter.com/
1•ashitlerferad•10m ago•0 comments

Swedbank fined $50M by New York authorities over Panama Papers revelations

https://www.icij.org/investigations/panama-papers/swedbank-fined-50-million-by-new-york-authoriti...
1•robtherobber•12m ago•0 comments

Show HN: Tool to help old Java projects not on modern build systems

https://maven-tools.mohants.com/
1•pmg1991•13m ago•0 comments

Show HN: GeoChess – open-source geography strategy game

https://geochess.org
1•spider-hand•14m ago•0 comments

How much of your workweek goes the way you expected? [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2024/11/Time-Warp-Developer-Productiv...
1•akarshhegde18•14m ago•0 comments

The M5Stack Tab5

https://taoofmac.com/space/reviews/2026/07/18/1920
1•rcarmo•20m ago•0 comments

Ask HN: Are there any new competitors to Google search in 2026?

1•roschdal•27m ago•2 comments

EU Exempts Apple Watch and AirPods from Battery Removal Requirements

https://mjtsai.com/blog/2026/07/17/eu-exempts-apple-watch-and-airpods-from-battery-removal-requir...
3•miohtama•31m ago•0 comments

AI Watermark Evidence Fails Forensic Readiness: An Empirical Evaluation

https://arxiv.org/abs/2607.16010
1•sbulaev•34m ago•0 comments

A Lunch Conversation Changed My Website

https://ammar-najjar.com/blog/rebuilding-website-astro/
1•ammarnajjar•36m ago•0 comments

Is there even a ground-truth for LLMs' internal representations?

https://www.lesswrong.com/posts/EetjXEwjR2eun2mAc/is-there-even-a-ground-truth-for-llms-internal
2•joozio•39m ago•0 comments

PixelSat I Software Part 3: Onboard Computer

https://www.projectpixelorbital.com/software-3/
1•aadishv•41m ago•0 comments

I compared 5 AI coding subscriptions by pricing model and usage limits

https://canopywave.com/blog/best-ai-coding-plans-2026-pricing-limits-use-cases
2•Rossmax•42m ago•0 comments

Britain: A Cautionary Tale for America

https://www.noahpinion.blog/p/the-uk-is-a-cautionary-tale-for-the
3•barry-cotter•47m ago•1 comments

Claude Fable 5 on your plan

https://support.claude.com/en/articles/15424964-claude-fable-5-on-your-plan
5•tidbeck•48m ago•1 comments

Notes from Inside China's AI Labs

https://www.interconnects.ai/p/notes-from-inside-chinas-ai-labs
2•hunglee2•49m ago•0 comments

The Jacobian Conjecture Is False per Anthropic

https://old.reddit.com/r/math/comments/1v1aix1/the_jacobian_conjecture_is_false_per_anthropic/
3•georgeven•56m ago•0 comments

Square Right Pyramid Volume (Height = Base) Visually

https://www.youtube.com/watch?v=5rJHidOvuvc
1•vismit2000•57m ago•0 comments

The Life and Times of Maxis, Part 2: SimWorld

https://www.filfre.net/2026/07/the-life-and-times-of-maxis-part-2-simworld/
2•zetamax•58m ago•0 comments

Identical quadruplets in 'one of the rarest births in the world'

https://www.abc.net.au/news/2026-07-20/identical-quadruplets-birth-brisbane/106935748
2•asdefghyk•59m ago•2 comments

First evidence of WordPress wp2shell exploit being used in the wild

https://twitter.com/rahulgovind517/status/2078998010969866538
2•rahulgovind517•1h ago•1 comments

Better Agent Leagues and Decision Supervision from Branched Rollouts

https://gertlabs.com/blog/verdict
2•gertlabs•1h ago•0 comments

NYC LL144 and EU AI Act Compliance Guides

https://www.nyc144euaiact.com
1•Haiec•1h ago•0 comments

Remarkable icefish nests found under Antarctic ice

https://oceanographicmagazine.com/news/thousands-of-remarkable-icefish-nests-found-under-antarcti...
2•teleforce•1h ago•0 comments