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/

The Agentic Software Factory Is the Wrong Metaphor

https://robwest.info/articles/the-agentic-software-factory-is-the-wrong-metaphor/
1•emersonmacro•13s ago•0 comments

Ask HN: Fable 5.1 or Opus 5.5?

1•apt-apt-apt-apt•1m ago•0 comments

Show HN: ScreenGuard – Open-source digital wellbeing and app limits for Linux

https://github.com/adityakrishnan005-a11y/ScreenGuard
1•AdityaK_9999•2m ago•0 comments

JSONBench – A Benchmark for Data Analytics on JSON

https://benchmark.clickhouse.com/json/
1•zX41ZdbW•3m ago•0 comments

Show HN: Audio Visuals for the Quiet Mind

https://harmonicautomata.bytejelly.com/
1•jasondigitized•3m ago•0 comments

Back to Basics (2001)

https://www.joelonsoftware.com/2001/12/11/back-to-basics/
1•theanonymousone•3m ago•0 comments

Scientists identify two overlooked skills that predict reading success

https://www.mdpi.com/2079-3200/13/8/104
1•sshah03•4m ago•1 comments

Whose Service Is It Anyway? Predicting Service Ownership at Cortex

https://builders.cortex.io/blog/whose-service-is-it-anyway/
3•keithfz•6m ago•0 comments

The G.I. and the Paperback: A World War II Love Story

https://warontherocks.com/the-g-i-and-the-paperback-a-world-war-ii-love-story/
1•baud147258•9m ago•0 comments

AI as a Multi-Vector Civilizational Failure [pdf]

https://osf.io/tvwum/
1•jaisupreme•11m ago•0 comments

A Month to go until release of A1200

https://www.reddit.com/r/amiga/comments/1xnot5s/a_month_to_go_until_release_of_a1200_whos_excited/
1•doener•11m ago•0 comments

Anka 3.10: OCI filesystem layers for macOS VM tools (no VM boot needed)

https://veertu.com/portable-thin-tags/
1•norsegaud•11m ago•0 comments

I asked LLMs which game 40 neural nets play, given only the weights

https://wohoef.github.io/posts/which-game/
1•wohoef•11m ago•0 comments

Google Will Cut Off Search Engine Access to Schools Banning Generative AI

https://www.forbes.com/sites/maryroeloffs/2026/11/03/google-will-cut-off-search-engine-access-to-...
1•ivell•13m ago•2 comments

Second Incident of the day

https://www.githubstatus.com/incidents/xr3myzj7ms51
3•denysvitali•14m ago•1 comments

Ask HN: Is it possible the field's course gets readjusted to normalcy again?

1•spiresofagartha•14m ago•1 comments

The DEA banned a drug some opioid users called a miracle

https://www.wired.com/story/opioid-users-sr-17018-drug-to-help-them-quit-dea-ban/
1•staplung•14m ago•0 comments

Tokenizer Mono

https://george.mand.is/2026/11/the-tokenizer-font/
1•georgemandis•16m ago•2 comments

Think Less, Aim for Less (When It Comes to Hardware)

https://techrights.org/n/2026/11/03/Think_Less_Aim_for_Less_When_It_Comes_to_Hardware.shtml
1•amcclure•17m ago•1 comments

Show HN: GTMshortlist – I asked Claude for the best AI SDR. It wasn't yours

https://gtmshortlist.ai/
1•bigryanhacks•17m ago•0 comments

Textual has a new home, and it is us (macOS IRC client)

https://www.textualapp.com/news/a-new-chapter
1•dewey•18m ago•0 comments

How we made evals 100× cheaper with multi-agent architecture

https://cleric.ai/blog/how-we-made-evals-100x-cheaper-with-multi-agent-architecture
1•fritzschopen•18m ago•1 comments

Europe's Agentic Opportunity [pdf]

https://cdn.openai.com/pdf/europes-agentic-opportunity.pdf
1•gmays•18m ago•0 comments

Is Curiosity Good for Us?

https://www.lrb.co.uk/the-paper/v48/n20/adam-phillips/is-curiosity-good-for-us
1•bookofjoe•19m ago•0 comments

Omarchy 4.5 will ship with full compatibility for M1, M2, M3, and Neo

https://twitter.com/dhh/status/2117992511407014110
4•lwhsiao•20m ago•0 comments

Powering Artificial Intelligence [pdf]

https://iea.blob.core.windows.net/assets/cd360a30-aaef-43cd-84e6-a125c3a0bc67/PoweringArtificialI...
2•gmays•21m ago•0 comments

Steven Vaughan-Nichols Is Slop

https://techrights.org/n/2026/11/04/Steven_Vaughan_Nichols_is_Slop.shtml
1•amcclure•21m ago•0 comments

A 16-step drum sequencer in the browser

https://plastic.audio/drum-sequencer/
1•madbyte•21m ago•0 comments

People Against Genocide Smash Military Satellites on Balfour Anniversary

https://aftershock.media/military-satellites-balfour/
2•slowin•23m ago•0 comments

'It's just vape, nail, charity shops': Can anything save UK high street?

https://www.theguardian.com/business/2026/nov/04/what-can-save-the-british-high-street-rotherham
19•theanonymousone•24m ago•18 comments