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/

AI Debt Failure Will Prompt Another Wave of Fed Bailouts [pdf]

https://www.myrmikan.com/pub/Myrmikan_Research_2026_08_14.pdf
1•eodafbaloo•1m ago•0 comments

Is a molecular-scale semiconductor hiding inside metagenomic databases?

https://medium.com/@kisnorbert87/is-a-molecular-scale-semiconductor-hiding-inside-metagenomic-dat...
1•kisnorbert•2m ago•0 comments

Show HN: Harbor – A lightweight ATS and CRM for independent recruiters

https://findharbor.com
1•tima101•3m ago•0 comments

Plausible Community Edition had an unauthenticated RCE for over a year

https://github.com/plausible/analytics/discussions/6355
1•gregzeng95•6m ago•0 comments

Datafeudalism: The Domination of Modern Societies by Big Tech Companies

https://link.springer.com/article/10.1007/s13347-024-00777-1
1•smartmic•9m ago•0 comments

Kimi likes causal decision theory more after RL in twin prisoner's dilemmas

https://www.lesswrong.com/posts/hfNBEKaStASAYMLiu/kimi-likes-causal-decision-theory-more-after-rl...
1•0xkato•11m ago•0 comments

A PyTorch optimizer built on continuous thermodynamics and Langevin dynamics

https://github.com/3moorebbb-sketch/MEP-Unified-Architecture
1•3moorebbb•16m ago•0 comments

Going live now – mosh coding at 1:45am

https://dev.profullstack.com/~anthony/blog/007-post.html
1•buffer_overlord•17m ago•0 comments

Helwan Ha-300

https://en.wikipedia.org/wiki/Helwan_HA-300
1•tosh•17m ago•0 comments

160-Bay NVMe SSD 4U Server Shown at FMS 2026 Supermicro ASG-4116S-NU160R

https://www.servethehome.com/160-bay-nvme-ssd-4u-server-shown-at-fms-2026-supermicro-asg-4116s-nu...
1•ksec•18m ago•1 comments

Show HN: Turk SEM – Chrome SidePanel SEO Inspector with JavaScript Render Diff

https://chromewebstore.google.com/detail/turk-sem-on-page-seo-chec/knkmbjcbancffkmmlakialpdefbdockl
2•gezginweb•21m ago•0 comments

Faceminer

https://wristwork.itch.io/faceminer
1•monneyboi•22m ago•0 comments

Replicate alternatives: model hosting vs. model APIs

https://medium.com/@CometAPI_/replicate-alternatives-for-ai-model-apis-in-2026-d5297576ab7e
1•AnneWodell•22m ago•0 comments

Show HN: Use tl;draw inside Org-mode

https://github.com/larrasket/org-draw
1•lr0•23m ago•0 comments

Show HN: Meridian, a local-first journal that drafts project updates

https://github.com/Meridiona/meridian
2•adithyaharish•24m ago•0 comments

Show HN: Grafana agent observability for Hermes Agent

https://github.com/alexander-akhmetov/grafana-agento11y-hermes
2•eventuallyacat•25m ago•0 comments

The Wrong Memory

https://strawberry9.github.io/the-wrong-memory/00_cover.html
1•Volatile-Regist•26m ago•0 comments

RAPx: A static analysis tool for Rust programs

https://github.com/safer-rust/RAPx
1•rendaw•27m ago•0 comments

The Lonely Men at the End of the World

https://www.newyorker.com/culture/photo-booth/the-lonely-men-at-the-end-of-the-world
2•Michelangelo11•30m ago•0 comments

NamingCube – AI name generator that checks if you can use the name

https://www.namingcube.com/
1•davisxie•33m ago•0 comments

The one task nobody wants to do

https://dev.profullstack.com/~anthony/blog/006-post.html
1•buffer_overlord•36m ago•1 comments

A Fast Path for Reading Fixed-Length Lists in Parquet

https://www.morling.dev/blog/fast-path-for-fixed-length-lists-in-parquet/
2•gunnarmorling•42m ago•0 comments

Show HN: Branchline, a $15 alternative to GitLens Pro's commit graph

https://sarthak645.gumroad.com/l/branchline
2•sarthakkuwar1•44m ago•0 comments

More screen time in childhood linked to improved cognitive processing in teens

https://www.uef.fi/en/article/more-screen-time-since-childhood-associated-with-better-cognitive-p...
3•giuliomagnifico•48m ago•1 comments

AI Agent Insurance Products: The New Wave

https://openkoda.com/ai-agent-insurance-products/
3•mgl•48m ago•0 comments

Hi everyone – I'm John, founder of Barawave

https://barawave.com/
2•johngai•52m ago•0 comments

Free v4 front end for your v6 site

https://v4-frontend.netiter.com/
3•networked•52m ago•0 comments

Court Rejects Fair Use Claim, Orders YouTube to Unmask Anime Recap Channels

https://torrentfreak.com/court-rejects-fair-use-claim-orders-youtube-to-unmask-anime-recap-channels/
4•gslin•54m ago•0 comments

The Greatest Books of All Time

https://thegreatestbooks.org/
2•gurjeet•58m ago•0 comments

Temperature Zero for Culture: Why Everything Is Starting to Look the Same

https://laurenleek.substack.com/p/temperature-zero-for-culture-why
2•jalev•1h ago•0 comments