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•11mo ago

Comments

bastawhiz•11mo ago
Is this a problem that people actually have?
xeromal•11mo ago
Fun side project man!
primitivesuave•11mo 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•11mo 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•11mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•11mo 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•11mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

The Mushroom That Makes People Have the Exact Same Hallucination

https://www.vice.com/en/article/meet-the-mushroom-that-make-people-have-the-exact-same-hallucinat...
1•thunderbong•1m ago•0 comments

What Is Pub/Sub?

https://encore.dev/blog/pubsub
1•dohguy•4m ago•0 comments

Media over QUIC

https://moq.dev/
1•gurjeet•5m ago•0 comments

Claude Code Uses GLM 4.7

https://old.reddit.com/r/LocalLLaMA/comments/1swr135/anthropics_claude_remote_uses_glm47/
1•iamskeole•5m ago•2 comments

Agent Index Documenting Technical and Safety Features

https://arxiv.org/abs/2602.17753
1•bdg•6m ago•0 comments

A layout engine for image generation in JavaScript

https://sone.seanghay.com/
2•invisal•6m ago•0 comments

The predictable failure of the QDay Prize

https://algassert.com/post/2601
1•EvgeniyZh•7m ago•0 comments

Community for carbon markets, renewables and clean energy

https://carboncredit.io
2•m00dy•9m ago•0 comments

Jekyll can be as fast as Vitepress by using Turbo Frames

https://jekyll-vitepress.dev/
1•earcar•12m ago•0 comments

Codex Plugin for Claude Code

https://community.openai.com/t/introducing-codex-plugin-for-claude-code/1378186
1•alvis•14m ago•0 comments

Sci-Hub launches Sci-Bot an AI-powered research assistant

https://sci-bot.ru/
1•the-mitr•15m ago•0 comments

Enhancing Stride Threat Models Using Mitre EMB3D

https://medium.com/mitre-emb3d/enhancing-stride-threat-models-using-mitre-emb3d-ea15937dc5f8
1•Tomte•18m ago•0 comments

I Spent My Sabbatical Building a Power Meter for Sledgehammers

https://leblancfg.com/intensity-pad-founder-story.html
1•alin23•20m ago•0 comments

Haiku has not caught up with the times

https://discuss.haiku-os.org/t/my-haiku-arm64-progress/19044
1•rcarmo•21m ago•2 comments

Hermes.ms in Git history causes extra usage billing of Claude subscription

https://github.com/anthropics/claude-code/issues/53262
3•OlivOnTech•21m ago•1 comments

Best Clinic Management Software Trusted by Top Clinics

1•Consentz•23m ago•0 comments

Build your own voice assistant and run it locally – Whisper, Ollama, Bark (2024)

https://medium.com/@vndee.huynh/build-your-own-voice-assistant-and-run-it-locally-whisper-ollama-...
2•thunderbong•24m ago•0 comments

HardenedBSD Officially Moves to Radicle

https://hardenedbsd.org/article/shawn-webb/2026-04-26/hardenedbsd-officially-radicle
1•r3ason•24m ago•0 comments

Apple already won the AI race: Your favorite AI will be gone soon

https://medium.com/@michalmalewicz/your-favorite-ai-will-be-gone-soon-9b3b035fe3db
3•hardmaru•32m ago•2 comments

DeepSeek V4 is a display of Huawei AI chip's capabilities

https://www.technologyreview.com/2026/04/24/1136422/why-deepseeks-v4-matters/
2•jackyli02•35m ago•0 comments

China's Plans to Fight in Space

https://ig.ft.com/space-weapons/
4•bazzmt•42m ago•0 comments

GitHub outages since Microsoft acquisition

https://old.reddit.com/r/github/comments/1rnvhs9/githubs_historic_downtime_scraped_and_plotted/
4•nreece•43m ago•0 comments

Hang.live

https://hang.live/
4•gurjeet•43m ago•0 comments

Most People Who Ride Bikes Have Soft Tires

https://maxmautner.com/2026/04/25/soft-tires.html
2•mslate•45m ago•0 comments

State of my AI-assisted development workflows

https://handmadeoasis.com/state-of-ai-assisted-workflows-april-2026/
2•RamtinJ95•48m ago•0 comments

Claude Code plugin for designing modular systems

https://github.com/vladikk/modularity
3•xamut•48m ago•1 comments

Millions Are Turning to a Cheaper, Electricity-Free Cooling Solution

https://economictimes.indiatimes.com/news/international/us/say-goodbye-to-traditional-air-conditi...
3•thelastgallon•50m ago•1 comments

Dwarkesh Patel’s Podcast Lets You Can Eavesdrop on the A.I. Elite

https://www.nytimes.com/2026/04/26/business/dwarkesh-patel-podcast-ai.html
2•jbegley•53m ago•0 comments

Running Gemma 4 31B on Mac with Ollama

https://sammyrulez.github.io/running-gemma-4-31b-on-an-apple-silicon-mac-with-ollama.html
2•sammy_rulez•58m ago•0 comments

Postgate: Multi-tenant HTTP proxy for PostgreSQL with SQL validation

https://github.com/openworkers/postgate
2•gurjeet•1h ago•0 comments