frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•12mo 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•12mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Server Migration Without Extra Disk Space: Streaming Borg Backups with Ffl

https://fastfilelink.com/static/blog/server-migration-without-extra-disk-space-fastfilelink.html
1•bear330•1m ago•0 comments

Programming Is Real Engineering, and AI Proves It

https://jerf.org/iri/post/2026/programming_is_engineering/
1•xngbuilds•3m ago•0 comments

P2P from Scratch – Part 1: The Internet Is Hostile – Pears

https://pears.com/news/p2p-from-scratch-part-1-the-internet-is-hostile/
1•janandonly•3m ago•0 comments

Show HN: Killed by Apple – a graveyard of discontinued Apple products

https://killedbyapple.theden.sh/
1•theden•5m ago•0 comments

Get >> HTTPS://Www.facebook.com/MetaFlowUS/

https://www.facebook.com/MetaFlowUS
1•dannywarney•6m ago•0 comments

IBM Pays $17M Resolve Allegations of Discrimination Through DEI Practices

https://www.justice.gov/opa/pr/ibm-pays-17-million-resolve-allegations-discrimination-through-ill...
1•iamflimflam1•7m ago•0 comments

The "Nuclear Energy Paradox"

https://www.sciencedirect.com/science/article/pii/S2214629626001477
1•o_pax•8m ago•0 comments

EU DMA after-action review didn't go the way that Apple wanted

https://appleinsider.com/articles/26/05/04/eu-dma-after-action-review-didnt-go-the-way-that-apple...
1•pseudalopex•8m ago•0 comments

Hackable PyTorch RL Library with Distributional Algorithms (D4PG, DSAC, DPPO)

https://github.com/e3ntity/e3rl
1•lschneider•8m ago•0 comments

OpenFeature

https://openfeature.dev/
1•wiradikusuma•9m ago•0 comments

Show HN: Red Squares – GitHub outages as contributions

https://red-squares.cian.lol/
4•cianmm•11m ago•0 comments

Automated pipeline that turns a narration recording into a YouTube video

https://github.com/danicuki/creative-act
1•danicuki•11m ago•0 comments

Show HN: Migrate your Evernote archive to Google Drive or local files

https://github.com/meizy/evernote-to-gdrive
1•meizy•16m ago•0 comments

Spike in Codex Downloads

https://www.npmcharts.com/compare/@openai/codex?log=false&interval=30
1•mirzap•16m ago•0 comments

Dyeeeufdieyeeeicdjehj

https://blog.cloudflare.com/post-quantum-warp/
1•shomserali•21m ago•0 comments

SEO: Medium Post Automation Agent

https://simplai.ai/solution/medium-post-automation-agent
1•emilypellegrini•21m ago•0 comments

Claude eagerly offers instructions to make explosives used in terrorist attacks

https://mindgard.ai/blog/claude-offers-up-instructions-to-make-explosives
1•watbe•21m ago•0 comments

US against them as a spectator from the sidelines

https://blog.fortrabbit.com/us-against-them
1•esher•22m ago•0 comments

What Comes After the Slide Deck? From Consulting Slides to Delivery Platforms

https://deepviews.xyz/blog/consulting-ppt-to-platform-en
1•rswcf•22m ago•0 comments

HomeDesignsAI

https://homedesigns.ai/
1•bellamoon544•27m ago•0 comments

AI collaboration as a laser cavity

https://solitonmaths.substack.com/p/the-coherent-cavity
1•tompdavis•29m ago•1 comments

Why the UAE Left OPEC

https://www.ft.com/content/77f79126-bbf5-4343-90ea-c403c04c5640
1•bazzmt•32m ago•1 comments

Free Tournament Bracket Builder

https://tournament-studio.apps.jointjs.com/
1•durman•34m ago•0 comments

What Is an AI SDR? How AI Sales Agents Work in 2026

https://babuger.com/blog/what-is-an-ai-sdr-how-ai-sales-agents-work
1•lyuata•34m ago•1 comments

notebooklm-py makes Claude interact with NotebookLM

https://github.com/teng-lin/notebooklm-py
1•rippeltippel•37m ago•0 comments

NZ Government to Disestablish the BSA

https://www.beehive.govt.nz/release/government-disestablish-bsa
3•xupybd•42m ago•1 comments

Open Agents from Vercel is now open source

https://github.com/vercel-labs/open-agents
2•ssgodderidge•44m ago•0 comments

Agentic AI Community 2026

https://simplai.ai/simplai-university
2•peterparker01•46m ago•0 comments

Visualize Any Hugging Face Model

https://hfviewer.com/
4•rippeltippel•46m ago•0 comments

DeepSeek nears $45B valuation as China's 'Big Fund' leads investment talks

https://www.ft.com/content/daaf2e0a-4a0d-4d7c-a85b-445480f6b9c7
5•thm•50m ago•2 comments