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/

Show HN: Blink

https://blinkmarkets.xyz
1•gauryvg98•4m ago•0 comments

AMD Based FreeBSD Desktop Reloaded

https://vermaden.wordpress.com/2026/09/06/amd-based-freebsd-desktop-reloaded/
1•vermaden•10m ago•0 comments

"Radical responsibility" means treating people like tools

https://www.seangoedecke.com/radical-responsibility-means-treating-people-like-tools/
1•gfysfm•10m ago•0 comments

Please don't rearrange our shoes when we turn up, paramedics in Japan urge

https://www.theguardian.com/world/2026/aug/28/never-tidy-paramedics-shoes-japan-custom-etiquette
1•tagawa•22m ago•0 comments

AI, Tools and Transformation

https://www.ben-evans.com/benedictevans/2026/9/3/ai-tools-and-transformation
1•firexcy•22m ago•0 comments

Social media platforms to be forced to offer algorithm opt-out

https://www.abc.net.au/news/2026-09-06/opt-out-laws-social-media-algorithm-parliament-government/...
1•nreece•30m ago•1 comments

Paleolithic

https://en.wikipedia.org/wiki/Paleolithic
1•andsoitis•31m ago•0 comments

Vistep – 62 animated science explanations

https://vistep.ai/
1•int64ago•34m ago•1 comments

GPT-6 Astra on robot arms

https://openai.robocurve.org/gpt-6-astra/
6•Anon84•42m ago•0 comments

Release containerd 2.3.5 · containerd/containerd

https://github.com/containerd/containerd/releases/tag/v2.3.5
1•kyisaiah47•46m ago•0 comments

The Next Big Opportunity in Data Centers: Insuring Them

https://www.wsj.com/finance/the-next-big-opportunity-in-data-centers-insuring-them-f133f3cb
1•thm•51m ago•0 comments

80k-year-old "arrowheads" rewrite human history

https://www.sciencedaily.com/releases/2026/09/260903064233.htm
3•gradus_ad•51m ago•0 comments

Founders School

https://founders.school
1•ungreased0675•56m ago•1 comments

Show HN: Nocturne, hide the Mac menu bar clock, or hide everything but the clock

https://github.com/dotcomjack/nocturne
1•dotcomjack•56m ago•0 comments

One new Swiss company in thirty-six now claims AI

https://prospex.ch/blog/ai-companies-in-switzerland-what-the-commercial-register-shows/
1•mial•1h ago•0 comments

Captcha in LinkedIn is not working while signing up from LibreWolf

1•Hannbal•1h ago•0 comments

Ask HN: Why don't we bring back old school OkCupid?

2•firefax•1h ago•2 comments

Linguistic Drift at the Frontier

https://pydantic.dev/articles/linguistic-drift-at-the-frontier
2•hummusFiend•1h ago•0 comments

Gateside by TSA Precheck

https://www.tsa.gov/precheck/gateside-tsa-precheck
8•minhduong243•1h ago•5 comments

Why the chicken crossed the road, according to various entities

https://dynomight.net/chicken/
2•Curiositry•1h ago•0 comments

Emergent cheating and whistleblowing in autonomous research swarms

https://arxiv.org/abs/2609.04170
2•anigbrowl•1h ago•0 comments

How to make your agent do its own support

https://mmoustafa.com/blog/2026/09/05/how-to-make-your-agent-do-its-own-support/
2•mmoustafa•1h ago•0 comments

Asahi Linux Supports M3

https://asahilinux.org/2026/09/m2-episode-1/
5•LorenDB•1h ago•2 comments

I hate Wispr Flow so much

https://www.nytimes.com/2026/08/19/magazine/ai-dictation-app-wispr.html
2•paaloeye•1h ago•1 comments

GPT-6 Astra recreated the Palace of Fine arts in Blender

https://twitter.com/sharifshameem/status/2095688352075075878
2•handfuloflight•1h ago•0 comments

When Code Is Abundant

https://about.gitlab.com/blog/when-code-is-abundant/
3•gmays•1h ago•0 comments

Manifolds, differential forms, and multivariable calculus

https://hidden-phenomena.com/articles/diff-forms
1•measurablefunc•1h ago•0 comments

Limitations of Perceptual Image Metrics

https://halide.cx/blog/metric-limits/
2•computerbuster•1h ago•0 comments

Show HN: Vibes – A Mac app for friends to see who's online and coding

https://vibes.opentangle.com/
2•zzzmarcus•1h ago•0 comments

Show HN: Cowbull – Wordle-like game where you only get match counts

https://cowbull.co/
2•ajayvk•1h ago•1 comments