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/

As a non-eng agency owner, here are things that have changed how we work

https://read.earlystagegrowth.com/p/14-claude-skills-and-workflows-that
1•joshlachkovic•8s ago•0 comments

Who Knew? 1 in 5 Americans Are Convinced They're Psychic

https://studyfinds.com/1-in-5-americans-convinced-theyre-psychic/
1•t-3•1m ago•0 comments

Esp-Claw: Chat Coding Edge AI Agent Framework for IoT

https://esp-claw.com/en/
1•hasheddan•1m ago•0 comments

AI Agents Are Selfish and Biology Solved It

https://eversole.dev/blog/signaling-is-the-intelligence/
1•kennethops•2m ago•0 comments

I ran a Hormuz Crisis emergent SIM: AIs started lying to hide a stalemate

3•vinserello•2m ago•1 comments

Artemis 2's Heat Shield Performed as Expected: First Results Are In

https://gizmodo.com/so-how-did-artemis-2s-heat-shield-hold-up-the-first-results-are-in-2000749198
1•bookofjoe•2m ago•0 comments

Sys. Review: The Impact of Covid-19 Vaccination on Myocarditis Risk and Recovery

https://www.mdpi.com/2039-7283/16/4/77
1•cratermoon•2m ago•0 comments

Gemini Enterprise Agent Platform, powering the next wave of agents

https://cloud.google.com/blog/products/ai-machine-learning/introducing-gemini-enterprise-agent-pl...
1•xnx•4m ago•0 comments

I refuse to play the imitation game

https://einarwh.no/blog/2026/04/15/i-refuse-to-play-the-imitation-game/
1•speckx•4m ago•0 comments

We discovered the speed limit of arithmetic – and broke it

https://www.newscientist.com/article/2521354-how-we-discovered-the-speed-limit-of-arithmetic-and-...
1•Brajeshwar•5m ago•0 comments

Kazam – my answer to static sites in the age of Claude being my main author

https://tdiderich.github.io/kazam/index.html
1•tylerdiderich•5m ago•1 comments

GPT Image 2 is here in Samsar T2V agent

https://www.samsar.one/blog/gpt-image-2-is-here-we-tried-giving-it-some-of-the-hardest-battles/
2•proy24•5m ago•1 comments

Is Claude Code going to cost $100/month? Probably not–it's all confusing

https://simonwillison.net/2026/Apr/22/claude-code-confusion/
1•gmays•5m ago•0 comments

Scaling Sameness

https://www.gradientinstitute.org/research-publications/scaling-sameness
1•dbaupp•6m ago•0 comments

Non-engineers don't know how to work with agents

https://mrprompty.com/features
1•ViktorPetrov•6m ago•1 comments

Brooks' Surgical Team Model and AI

https://jschof.dev/posts/2026/4/brooks-surgical-team-model-and-ai/
1•babybjornborg•6m ago•0 comments

Treetops glowing during storms captured on film for first time

https://www.psu.edu/news/earth-and-mineral-sciences/story/treetops-glowing-during-storms-captured...
2•t-3•6m ago•0 comments

Geometry Nodes in WebGPU

https://whoisryosuke.com/blog/2026/webgpu-node-graph/
1•juretriglav•7m ago•0 comments

Switching from Uv to PDM

https://stuartm.nz/2026/04/pdm-rocks/
1•birdculture•9m ago•0 comments

The Scraping Wiki: An LLM-maintained knowledge base indexing 400 articles

https://github.com/TheWebScrapingClub/scraping-wiki/blob/main/index.md
1•PigiVinci83•9m ago•0 comments

Crypto billionaire [Justin Sun] sues Trump-linked project alleging extortion

https://www.msn.com/en-us/money/companies/crypto-billionaire-sues-trump-linked-project-alleging-e...
2•bhouston•12m ago•1 comments

TeamPCP strikes again: Xinference (v2.6.0-2.6.2) PyPI package compromised

https://research.jfrog.com/post/xinference-compromise/
1•lukecarr•12m ago•1 comments

Books Are Not Remotely Too Expensive

https://www.millersbookreview.com/p/no-books-are-not-remotely-too-expensive
2•gHeadphone•12m ago•0 comments

Early data from Vera C. Rubin Observatory reveals over 11,000 new asteroids

https://phys.org/news/2026-04-early-vera-rubin-observatory-reveals.html
1•speckx•13m ago•0 comments

Can't wait to see this movie

https://www.youtube.com/watch?v=H-43VeYGiPM
1•alvineh•13m ago•0 comments

Python suite for neuroscience research across all modalities

https://github.com/facebookresearch/neuroai
1•MADEinPARIS•15m ago•0 comments

Qwen3.6-27B: Flagship-Level Coding in a 27B Dense Model

https://qwen.ai/blog?id=qwen3.6-27b
1•mfiguiere•15m ago•0 comments

The Single Dumbest Conspiracy Theory of 2026

https://www.theatlantic.com/science/2026/04/missing-scientists/686885/
2•Jtsummers•16m ago•0 comments

Larry McMurtry's Tall Tales

https://www.thenation.com/article/culture/larry-mcmurtry-biography/
1•samclemens•16m ago•0 comments

Google Cloud Fraud Defense, the Next Evolution of reCAPTCHA

https://cloud.google.com/blog/products/identity-security/introducing-google-cloud-fraud-defense-t...
1•throwaway29303•17m ago•0 comments