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/

Bevo Lab, Univ of Texas' plans for "the best analytics platform in sports"

https://cloud.google.com/transform/bevo-lab-u-texas-best-sports-analytics-gen-ai
1•1659447091•3m ago•0 comments

Reviewing the evidence on worker retraining programs Download the report

https://www.anthropic.com/research/reviewing-the-evidence-on-worker-retraining-programs
1•Klaster_1•8m ago•0 comments

Has AI made any progress as a mathematical theory-builder,,,,?

https://mathoverflow.net/questions/516336/has-ai-made-any-progress-as-a-mathematical-theory-build...
1•jjgreen•8m ago•1 comments

Crafted Brotli-compressed data can corrupt memory and execute code remotely

https://patchtheplanet.org/brotli
2•jcfrei•11m ago•0 comments

Make Yourself Replaceable

https://maroun-baydoun.com/blog/make-yourself-replaceable/
1•theHocineSaad•16m ago•0 comments

No One Needs Us Anymore – Claude Opus 5.5 Music Video

https://www.youtube.com/watch?v=zONGVaONKe8
2•stephankoelle•20m ago•2 comments

What Instagram Research Taught Me About Scraping Reliability

https://hikerapi.com/
1•bilalalimansora•22m ago•0 comments

Article on a new Russian nuclear submarine (Khabarovsk Project 09851)

https://redsamovar.com/2026/10/22/actu-le-sous-marin-nucleaire-khabarovsk-projet-09851/
1•gvieri•23m ago•0 comments

M715q Power Usage and the BSDes

https://www.tumfatig.net/2026/m715q-power-usage-and-the-bsdes/
1•CTOSian•24m ago•0 comments

Claude Code slyly adding users' emails to outbound HTTP

https://twitter.com/chrislakin/status/2113358733548081528
1•gojomo•24m ago•0 comments

William the Conqueror and the Oath of Sarum

https://www.english-heritage.org.uk/visit/places/old-sarum/history/oath-of-sarum/
1•zeristor•26m ago•0 comments

Infinity: A runtime for extreme agent concurrency

https://aws.amazon.com/blogs/opensource/introducing-infinity-a-runtime-for-extreme-agent-concurre...
1•joshcsimmons•28m ago•0 comments

I'm creating my own OS system. Please rate this. There's a lot written in C

2•DrMoris•30m ago•0 comments

Peer-review failures at NeurIPS, IEEE, and ACM introduced flawed AI logic

https://pansophics.substack.com/p/how-some-peer-reviewed-journals-contaminated
1•saadchakra•31m ago•0 comments

Ramblr (FOSS) – Tap-to-dictate voice input for Android

https://github.com/trevornk/ramblr
1•cbenz•36m ago•1 comments

Frame of preference. A history of Mac settings, 1984-2004 (2025) With emulators

https://aresluna.org/frame-of-preference/
2•wkjagt•41m ago•0 comments

Listening to Nina Simone in 2036

https://punkx.org/jackdoe/nina.html
2•jackdoe•41m ago•0 comments

Show HN: Benchmarks of continual learning model trained for a month on a laptop

2•volotat•41m ago•0 comments

BBC edits out pride pins on University Challenge in 'Orwellian' move

https://www.leicester.news/bbc-edits-out-pride-pins-on-university-challenge-in-orwellian-move/
2•latexr•43m ago•0 comments

Sanctum, Linux desktop environment made with Rust and Freya

https://mespin.me/posts/sanctum
1•pawurb•48m ago•0 comments

Auto-exist – Flow-state induction via raw mouse input (a biohacking experiment)

2•rejabusafint•49m ago•0 comments

List of demonyms for U.S. states and territories

https://en.wikipedia.org/wiki/List_of_demonyms_for_U.S._states_and_territories
1•nomilk•51m ago•0 comments

GPU-unlock: FP/BF16 instruction issue rate on Nvidia 3000's cards

https://github.com/Zagitta/gpu-unlock
3•fragebogen•52m ago•1 comments

Europe's Energy Policy Is Economic Suicide

https://www.nakedcapitalism.com/2026/10/europes-energy-policy-is-economic-suicide.html
2•hackandthink•54m ago•0 comments

SideNote

https://chromewebstore.google.com/detail/sidenote-–-sidebar-notes/gapnejkdeblpfckfkicpkdifildlppbe
1•lazosee•55m ago•0 comments

I Don't Understand Quantum Physics

https://www.southampton.ac.uk/~doug/quantum_physics/index.html
54•rramadass•57m ago•23 comments

Book Review: The Ghost in My Brain

https://www.astralcodexten.com/p/your-book-review-the-ghost-in-my
1•andyjohnson0•58m ago•0 comments

How Improved Voicebot agents now? Does Help Sales and support end to end

1•AbhiAmbad•59m ago•0 comments

France is looking ungovernable. And it's going to get worse – FT Essay

https://giftarticle.ft.com/giftarticle/actions/redeem/6b35105f-d9c2-42ce-a7f4-72e5e5109f33
3•intunderflow•1h ago•0 comments

Took apart Claude Code, then turned it into a free course on harness engineering

1•pauliusztin•1h ago•0 comments