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

Comments

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

Mini Brains Grown from Stem Cells Developed Light-Sensitive, Eye-Like Features

https://www.smithsonianmag.com/smart-news/mini-brains-grown-stem-cells-developed-eyes-can-sense-l...
1•thunderbong•18s ago•0 comments

Europe must be ready when the AI bubble bursts

https://www.ft.com/content/0308f405-19ba-4aa8-9df1-40032e5ddc4e
1•Brajeshwar•1m ago•0 comments

Guarding My Git Forge Against AI Scrapers

https://vulpinecitrus.info/blog/guarding-git-forge-ai-scrapers/
1•todsacerdoti•11m ago•0 comments

Let's Embed a Go Program into the Linux Kernel

https://sigma-star.at/blog/2023/07/embedded-go-prog/
1•birdculture•11m ago•0 comments

People power: How LLMs invert tech diffusion

https://karpathy.bearblog.dev/power-to-the-people/
2•keepamovin•12m ago•0 comments

System76 Launches Pop _OS 24.04 LTS with Cosmic Desktop

https://www.phoronix.com/news/System76-Ships-Pop-OS-24.04
2•abdullah2993•15m ago•0 comments

Show HN: Toqen – privacy-first authentication flow with QR and TOTP

https://www.toqen.app/
1•antonmb•17m ago•0 comments

OpenAI latest model ChatGPT 5.2 fails a simple logic problem

1•lihaciudaniel2•17m ago•2 comments

Baseline: Operation-Based Evolution and Versioning of Data

https://arxiv.org/abs/2512.09762
2•mrauha•26m ago•0 comments

Smartphone Without a Battery (2022)

https://yaky.dev/2022-09-06-smartphone-without-battery/
3•MYEUHD•26m ago•0 comments

The tiniest yet real telescope I've built

https://lucassifoni.info/blog/miniscope-tiny-telescope/
21•chantepierre•26m ago•4 comments

LaunchSoon: Convert social followers to email subscribers before you launch

https://launchsoon.io/
1•dzungfz•28m ago•0 comments

Revisiting Quantum Supremacy: Simulating Sycamore-Class Circuits Using HPC

https://arxiv.org/abs/2512.07311
1•ulam2•34m ago•0 comments

AI Accountants – FINA AI

https://fina.team/
1•elevateyou•34m ago•1 comments

Show HN: Stimm – Low-Latency Voice Agent Platform (Python/WebRTC)

https://github.com/stimm-ai/stimm
2•stimm•37m ago•1 comments

Swift Configuration 1.0 Released

https://swift.org/blog/swift-configuration-1.0-released/
2•frizlab•38m ago•0 comments

Architecture Decision: Why We Moved from Web to Desktop for Reddit Automation

https://www.wappkit.com/blog/why-desktop-architecture
1•asphero•41m ago•0 comments

Disco is Google's new generative AI web app experience

https://blog.google/technology/google-labs/gentabs-gemini-3/
1•ChrisArchitect•42m ago•1 comments

Crumbling New York Parking Garages Get a New Life

https://www.nytimes.com/2025/12/10/realestate/parking-garage-apartment-housing-conversion.html
3•JumpCrisscross•43m ago•0 comments

Ntoh*/hton* is a bad API

https://purplesyringa.moe/blog/ntoh-hton-is-a-bad-api/
1•PaulHoule•43m ago•0 comments

AI Could Be the Railroad of the 21st Century. Brace Yourself

https://www.derekthompson.org/p/artificial-intelligence-could-be
3•DeathArrow•45m ago•1 comments

MCP Joins the Linux Foundation

https://github.blog/open-source/maintainers/mcp-joins-the-linux-foundation-what-this-means-for-de...
4•senorqa•48m ago•3 comments

Zip Files as (Simple) Key-Value Stores

https://benjamincongdon.me/blog/2025/12/11/Zip-Files-as-Simple-Key-Value-Stores/
1•ingve•53m ago•0 comments

Ford's Car of the Future, Hatched in a Skunk Works Near Los Angeles

https://www.nytimes.com/2025/12/11/business/ford-electric-vehicles-china.html
1•ianrahman•53m ago•0 comments

Anthropic Donated to Linux Agenic AI Foundation(AAIF)

https://aaif.io/
1•zkitty•55m ago•2 comments

LastPass fined £1.2M by ICO for data breach

https://ico.org.uk/about-the-ico/media-centre/news-and-blogs/2025/12/password-manager-provider-fi...
1•edent•56m ago•0 comments

Show HN: Skyulf – Open-source, self-hosted MLOps platform

https://github.com/flyingriverhorse/Skyulf
2•flyingriverhrse•57m ago•0 comments

A Wireless Camera Inside a Walnut [video]

https://www.youtube.com/shorts/WvDJVN51uvA
1•thunderbong•59m ago•0 comments

Vacuum Is a Lie (About Your Indexes)

https://boringsql.com/posts/vacuum-is-lie/
3•radimm•1h ago•0 comments

Show HN: Kirkify – AI Face Swap for Charlie Kirk Memes

https://kirkify.uk
2•951560368•1h ago•0 comments