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 Goose Programming Language

https://github.com/aardappel/goose
1•Luc•28s ago•0 comments

Startup Pursues Palmer Luckey's Vision of Enhanced Military Dogs

https://www.bloomberg.com/news/articles/2026-10-23/startup-pursues-palmer-luckey-s-vision-of-enha...
1•JumpCrisscross•1m ago•0 comments

Show HN: ObsidianYouTubeSync – Sync YouTube History into Obsidian

https://github.com/mr8lu/ObsidianYouTubeSync
1•mr8lu•2m ago•0 comments

Show HN: Corgi, a helpful {agent, terminal} multiplexer

https://corgi.computer/
1•eiopa•4m ago•0 comments

My chatbot comforted me when I thought I was dying. Was that friendship?

https://bigthink.com/mini-philosophy/my-chatbot-comforted-me-when-i-thought-i-was-dying-was-that-...
1•bryan0•5m ago•0 comments

Rune 1.3: adds TypeScript, a Helix editor, Kitty graphics and OSC-7501

https://rune.build/blog/rune-1-3-release
1•ernestrc•9m ago•0 comments

We are all living inside of an obscure sci-fi film from 1970

https://thanksforthatjim.bearblog.dev/we-are-all-living-inside-of-an-obscure-sci-fi-film-from-1970/
2•speckx•9m ago•0 comments

Highly Optimizing Ahead-of-Time Compilers for Dynamic Languages [pdf]

https://olimel.net/static/pdf/thesis.pdf
1•matt_d•10m ago•0 comments

Show HN: Mdt – save tokens reading changes to Markdown

https://github.com/markdowntool/mdt
1•owenbrown•11m ago•0 comments

LegalEagle Investigates LG's Wiretapping Liability with GamersNexus [video]

https://www.youtube.com/watch?v=7kYn2x2Dt_A
3•rectang•12m ago•2 comments

Where the last RTX 5090 Video Cards are Going

https://videocardz.com/newz/heres-where-the-last-rtx-5090-cards-are-going-massive-ai-conversion-f...
2•jacquesm•15m ago•0 comments

Please Don't Mess with Links

https://maurycyz.com/misc/real_links/
2•ibobev•15m ago•1 comments

Why didn't we use Co­Register­Initialize­Spy?

https://devblogs.microsoft.com/oldnewthing/20261022-00/?p=112791/
1•ibobev•15m ago•0 comments

Why didn't we use the COM static store to clean up the unmarshalable delegate?

https://devblogs.microsoft.com/oldnewthing/20261023-00/?p=112793/
1•ibobev•16m ago•0 comments

Now Google says it might use your Gmail and Google Photos data to target ads

https://www.theverge.com/tech/1017600/google-personal-intelligence-privacy-policy-ads-update
5•JustSkyfall•16m ago•1 comments

Show HN: Argus – Run AI agents unattended on a VPS, controlled from Web & Tlgrm

https://github.com/rla-labs/argus
1•romeo-lefter•17m ago•1 comments

Show HN: Robin – Non-algorithmic Twitter client

1•billylo•18m ago•0 comments

New AI Is More Than Twice as Good at Diagnosing Diseases as Doctors

https://gizmodo.com/microsoft-says-its-new-ai-is-more-than-twice-as-good-at-diagnosing-diseases-a...
4•njx•19m ago•2 comments

Two States Can Now Restrict Social Media Access–Here's What to Do Next

https://www.eff.org/deeplinks/2026/10/two-states-can-now-restrict-social-media-access-heres-what-...
3•gslin•20m ago•0 comments

Meta delays rollout of terms that would allow broad scraping of news sites

https://www.niemanlab.org/2026/10/meta-delays-rollout-of-terms-that-would-allow-broad-scraping-of...
3•hanaatameez•21m ago•0 comments

Show HN: MXValidation – Send an email and get an authentication and DNS report

https://mxvalidation.com/
1•metalinvest•24m ago•0 comments

Examining the macOS GCC Binary

https://zoey-on-github.github.io/blog/macgcc.html
3•birdculture•24m ago•0 comments

List-Unsubscribe: Give recipients an alternative to marking email as spam

https://mxvalidation.com/blog/list-unsubscribe-header-trust-feedback
1•metalinvest•25m ago•0 comments

List of Game PC Ports and Recompilations

https://www.alwaysleaveanote.com/pc-ports/
1•xnx•26m ago•0 comments

OuterWeb – an index of authentic and informative web content

https://outerweb.org/
2•Curiositry•26m ago•0 comments

Earshot

https://newcomblabs.com/earshot
3•brodiebnew•26m ago•0 comments

Precision Agency

https://passwordprotectedd.substack.com/p/precision-agency-and-how-to-get-what
1•Curiositry•26m ago•0 comments

OpenAI Acquires Orchestra Bio

https://openai.com/index/openai-to-acquire-orchestra-bio/
3•toephu2•26m ago•0 comments

MDMA and Psilocybin Regulates Anxiety in a Rat Model

https://linkinghub.elsevier.com/retrieve/pii/S0006322326000521
3•znano•27m ago•0 comments

Elon Musk's dangerous grip on outer space

https://www.theverge.com/science/1017443/spacex-starlink-ukraine-elon-musk-monopoly
5•doener•28m ago•0 comments