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/

Counting Until the End of the Universe

https://essenceia.github.io/projects/until_heat_death_do_us_part/
1•random__duck•1m ago•1 comments

ContainerUtility: A macOS app for the container CLI

https://github.com/erdaltoprak/ContainerUtility
2•erdaltoprak•2m ago•0 comments

Living subscription-free in my brain

https://mapwriting.substack.com/p/living-subscription-free-in-my-brain
1•doitLP•4m ago•0 comments

Exploiting LLM Agent Supply Chains via Payload-Less Skills

https://arxiv.org/abs/2605.14460
1•_pdp_•5m ago•0 comments

Show HN: Apple Foundation Model in Xcode-Beta

https://gist.github.com/voxels/b6ea737dd127745f9af009ebd038ded4
1•edgcumbe•7m ago•0 comments

Omegacode: Code based orchestration for any coding agent

https://github.com/Sawyerhood/omegacode
1•handfuloflight•11m ago•0 comments

3D Airplane tracker on Mercator map

https://github.com/jamalrfordii-arch/Vanguard-Map
1•Lawyer24•13m ago•0 comments

Show HN: Desunofier – Removing shimmer from Suno songs

https://www.instasong.co/tools/desunofier
1•stanyy•14m ago•0 comments

Invisible Cities: The Legal Analysis of Space Based Solar Power

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6881678&__cf_chl_f_tk=hLQWAnW2Nv4B5PaV4xX16mF...
1•Lawyer24•15m ago•0 comments

GPT-5.5 Codex reasoning-token clustering may be leading to degraded performance

https://github.com/openai/codex/issues/30364
7•maille•15m ago•1 comments

Australian influencer Lily Jay's tangled web of AI manipulation

https://www.abc.net.au/news/2026-07-05/lily-jay-foundation-posts-ai-generated-misleading-videos/1...
1•phs318u•16m ago•0 comments

Global scammers use US tech to fleece people

https://apnews.com/article/scams-fraud-technology-ai-impostor-scam-phishing-12f549d5203abd38857c4...
4•jethronethro•18m ago•0 comments

Edeward Neumeier talks about 'RoboCop'

http://www.money-into-light.com/2013/07/edward-neumeier-talks-about-robocop.html
1•firasd•19m ago•0 comments

Taking the Temperature of Black Holes(2019)

https://www.bbc.com/news/uk-scotland-47773553
1•rolph•23m ago•0 comments

Tea-dash – a gh-dash-style terminal dashboard for Gitea and Forgejo

https://github.com/gbarany/tea-dash
1•gbarany•24m ago•0 comments

Show HN: Markdown to PDF CLI Tool

https://github.com/leonardosalasd/doc-engine-cli
2•leonardosalasd•28m ago•1 comments

My AI-built PHP engine in Rust passes 17% of PHP-src tests, renders WordPress

https://ekinertac.com/blog/i-dont-know-rust-my-ai-is-rewriting-php-in-it/
1•ekinertac•31m ago•0 comments

GoDaddy argues India's fake site crackdown could damage internet

https://www.reuters.com/world/worlds-biggest-domain-seller-fears-indias-fake-site-crackdown-could...
4•1vuio0pswjnm7•35m ago•1 comments

Small, odd, fleeting moments in which a neighborhood briefly exceeds itself

https://www.neighborhood-stills.com/
1•alexandruboia•36m ago•0 comments

The tests are the code now

https://softwaredoug.com/blog/2026/03/10/the-tests-are-the-code-now
3•softwaredoug•38m ago•0 comments

Alibaba/page-agent: in-page GUI agent. Control web interfaces

https://github.com/alibaba/page-agent
1•jonnonz•38m ago•0 comments

I Went Looking for Dignity and found it here [video]

https://www.youtube.com/watch?v=4gFGFbctEe0
1•pshapiro99•40m ago•1 comments

How AI Became More Expensive Than the Workers It Replaced [video]

https://www.youtube.com/watch?v=cfaZZPjA3g0
2•Bender•43m ago•0 comments

Linux DRM Scheduler Patches Yield Improvement for Job Submission Latency

https://www.phoronix.com/news/DRM-Scheduler-Lower-Job-Submit
2•Bender•45m ago•0 comments

Don't Hang Up on AI Scammers. Do This Instead [video]

https://www.youtube.com/watch?v=lk3jCuITwcE
1•wisemanwillhear•46m ago•0 comments

Show HN: Mise – A keyboard-driven Python/Qt6 browser built for fanless laptops

https://github.com/Rakosn1cek/Mise
1•Rakosn1cek•50m ago•0 comments

Exclusive-Meta's Zuckerberg says AI agent tech progressing slower than expected

https://finance.yahoo.com/technology/ai/articles/exclusive-zuckerberg-says-ai-agent-201123441.html
1•_____k•50m ago•0 comments

Show HN: Seize the means of production from our agentic overlords

https://github.com/Xophmeister/wean
2•Xophmeister•51m ago•0 comments

Show HN: I built an encrypted BLE dongle for pasting stuff to air-gapped devices

https://github.com/Brisk4t/ToothPaste
2•Brisk4t•53m ago•1 comments

Operation Ivy Bells

https://en.wikipedia.org/wiki/Operation_Ivy_Bells
3•m-hodges•54m ago•0 comments