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/

Security Sweet: Get your AI agents on a leash for security patch

https://github.com/blencorp/security-sweep
2•dotmike•1m ago•0 comments

Iceye and Nokia partner with Ukraine to develop satcom capability

https://www.iceye.com/newsroom/press-releases/iceye-and-nokia-partner-with-the-ministry-of-defenc...
1•cl-coder•2m ago•0 comments

Meta and chip stocks decline as AI trade comes under pressure

https://finance.yahoo.com/markets/article/meta-and-chip-stocks-decline-as-ai-trade-comes-under-pr...
2•julkali•3m ago•0 comments

With More Sanctions Should the ICC Trust Big Tech?

https://hrdag.org/2026/10/12/more-sanctions-on-icc/
1•cdrnsf•4m ago•0 comments

I built a free library of 900 motion design techniques you can recreate with AI

https://oneshotprompts.com/
1•takhoffman•6m ago•0 comments

AI, Quiz Me!

https://thoughts.kristiandupont.com/p/ai-quiz-me
2•kristiandupont•7m ago•0 comments

Monoidal computer I: Basic computability by string diagrams (2012)

https://arxiv.org/abs/1208.5205
1•measurablefunc•8m ago•0 comments

Lawsuits Can't Restrain Big Tech

https://jacobin.com/2026/10/big-tech-alphabet-meta-lawsuits
5•jrepinc•8m ago•1 comments

AI analysis of CT scans finds 42.9% of patients have coronary inflammation

https://www.biograph.com/newsroom/biograph-completes-first-u.s.-study-with-caristo-diagnostics%E2...
4•brandonb•9m ago•1 comments

Five AI assistants, first impressions

https://paolo.blog/five-ai-assistants-first-impressions/
2•speckx•9m ago•0 comments

Show HN: agent-usage-guard – a Claude Code mod to protect your usage window

https://github.com/rbartoli/agent-usage-guard
2•zzyyxx332211•9m ago•0 comments

Introducing Amutable Foundations

https://amutable.com/blog/introducing-amutable-foundations
2•ahlCVA•10m ago•0 comments

Donating Agent Skills to the Agentic AI Foundation

https://www.anthropic.com/news/donating-agent-skills-to-the-agentic-ai-foundation
3•surprisetalk•11m ago•0 comments

Economical joke, you will not understand

1•maskjelly•13m ago•1 comments

How ChatGPT MCP Events Work (It's Webhooks)

https://www.svix.com/blog/mcp-events/
2•atopia•14m 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...
2•toomuchtodo•14m 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•16m ago•1 comments

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

https://claytonwramsey.com/blog/dumpster/
1•ibobev•16m 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•16m ago•0 comments

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

2•petemilly•17m 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•17m ago•0 comments

My diagrams are nicer now thanks to Pele

https://paulwrites.software/articles/pele/
2•speckx•18m ago•0 comments

We gave AI agents a mobile dev environment

https://shopify.engineering/remote-dev
3•dayanruben•19m 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•19m 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•20m ago•0 comments

Cerbère – taint tracking for AI agents

https://github.com/chrismsmr-celcom/cerbere-AG
2•Dikesa_27•20m 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...
2•7777777phil•20m ago•0 comments

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

https://taaapit.com
1•faraz-saeed•21m 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•21m ago•1 comments

Local Democracy's Business Model Is Broken

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