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/

Economical joke, you will not understand

1•maskjelly•46s ago•1 comments

How MCP Events on ChatGPT Work

https://www.svix.com/blog/mcp-events/
1•atopia•1m ago•0 comments

Grid Constraints Curtailed 119GW of Renewables in India in September

https://oilprice.com/Latest-Energy-News/World-News/Grid-Constraints-Curtailed-119-GW-of-Renewable...
1•toomuchtodo•1m ago•1 comments

Unraid updated to patch CVE-2026-109618 and CVE-2026-109619

https://www.reddit.com/r/unRAID/comments/1xcp3mb/unraid_os_734_now_available_and_recommended_for/
1•TutleCpt•2m ago•1 comments

I built a garbage collector for a language that doesn't need one

https://claytonwramsey.com/blog/dumpster/
1•ibobev•3m ago•0 comments

Expose only share links of a private service with caddy

https://dataswamp.org/~solene/2026-10-21-caddy-forward-auth-public-share-links.html
1•ibobev•3m ago•0 comments

Ask HN: What browser should I use? (RIP Arc)

1•petemilly•4m ago•1 comments

Show HN: Train LoRA directly on the GGUF you have, then merge the adapter

https://www.reddit.com/r/LocalLLaMA/comments/1x5j48s/train_lora_directly_on_quantized_ggufs_no_py...
1•JoakimPalm-Zen•4m ago•0 comments

My diagrams are nicer now thanks to Pele

https://paulwrites.software/articles/pele/
1•speckx•4m ago•0 comments

We gave AI agents a mobile dev environment

https://shopify.engineering/remote-dev
1•dayanruben•6m ago•0 comments

KPIX SF Interviews Pentagon's Jay Stratton on His UAP Book "Out of the Shadows"

https://www.instagram.com/jaystrattonofficial/reel/Dek4snWq9zq/
1•ricksunny•6m ago•0 comments

Advice on using the Turbo-BASIC XL compiler

https://www.goto10retro.com/p/advice-on-using-the-turbo-basic-xl
1•ibobev•7m ago•0 comments

Cerbère – taint tracking for AI agents

https://github.com/chrismsmr-celcom/cerbere-AG
1•Dikesa_27•7m ago•0 comments

Happiness from Treating the Weekend Like a Vacation [pdf]

https://www.anderson.ucla.edu/documents/areas/fac/marketing/mogilner/West%20Mogilner%20DeVoe%20SP...
1•7777777phil•7m ago•0 comments

Taaapit Digital business card that keeps the people you meet, not just the card

https://taaapit.com
1•faraz-saeed•8m ago•0 comments

AI Isn't Coming to Make You Obsolete. It's Coming to Make You Extraordinary

https://medsiri.substack.com/p/ai-isnt-coming-to-make-you-obsolete
2•sp3000•8m ago•0 comments

Local Democracy's Business Model Is Broken

https://blog.landeconomics.org/p/local-democracys-business-model-is
1•viajante1882•8m ago•0 comments

Barclays to cut 5,000 jobs this year

https://www.reuters.com/business/world-at-work/barclays-cut-5000-jobs-this-year-2026-10-22/
1•frank_clover•8m ago•0 comments

Show HN: Podium, presentation rehearsal with coaching

1•jvanveen•8m ago•0 comments

How is music possible

https://www.henrikkarlsson.xyz/p/music
1•Curiositry•8m ago•0 comments

Show HN: MintPage – a SaaS I let an AI agent build and run (I never look at it)

https://mintpage.ai/
1•hlsitech•9m ago•0 comments

Elon Musk's dream merger is a nightmare for SpaceX shareholders

https://fortune.com/2026/10/22/is-elon-musk-tesla-spacex-merger-a-good-idea-shareholders/
1•slowin•9m ago•0 comments

We've decided to sunset Arc on December 22, 2026

https://mailchi.mp/diabrowser/arc-sunset
1•hughsk•10m ago•1 comments

AI Agent Builders can configure their retrieval in 5 minutes

https://www.claix.dev/for/ai-agent-creators
1•dev_anaya•11m ago•0 comments

AI Can Parallelize the Work. It Cannot Parallelize My Attention

https://palmesi.com/blog/knowledge-work-needs-awareness/
1•pizzooid•12m ago•1 comments

France reports first human case of livestock virus Shamonda after patient dies

https://www.reuters.com/business/healthcare-pharmaceuticals/france-reports-first-human-shamonda-v...
2•giuliomagnifico•12m ago•0 comments

Php2shell Needs a Shell

https://vivianvoss.net/blog/php2shell-needs-a-shell
1•speckx•13m ago•0 comments

Nvidia OpenShell

https://github.com/NVIDIA/OpenShell
4•niemandhier•14m ago•1 comments

PhoenixBlack-Nest – True shape nesting library in Python for CNC/laser cutting

https://github.com/PhoenixWally/PhoenixBlack-Nest
2•wallybi•16m ago•0 comments

Quest Diagnostics Reports Unauthorized Access of Patient Records

https://gizmodo.com/quest-diagnostics-reports-unauthorized-access-of-patient-records-2000829419
5•Aboutplants•16m ago•1 comments