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

Comments

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

Ask HN: Is Gaussian Splattering useful for analyzing Pretti's death?

2•mdnahas•3m ago•0 comments

Got into an argument on Discord about how inefficient CBR/CBZ is

https://old.reddit.com/r/selfhosted/comments/1qi64pr/i_got_into_an_argument_on_discord_about_how/
1•Breadmaker•3m ago•0 comments

Show HN: GlobalWatch – Find where movies are streaming globally

https://global-watch.pages.dev/
2•saheb37•6m ago•0 comments

How Does the Systems Development Life Cycle Shape Successful Software Projects?

https://www.mydigicode.com/a-comprehensive-guide-on-system-development-life-cycle-sdlc/
1•Andrew0416•7m ago•1 comments

Anthropic adds interactive Apps support in Claude

https://claude.com/blog/interactive-tools-in-claude
1•Eldodi•8m ago•0 comments

Show HN: Ideon – An open source, infinite canvas for your project's segmentation

https://www.theideon.com
1•expyth0n•8m ago•0 comments

Docs in Code

https://dumbideas.xyz/posts/docs-in-code/
2•omegastick•9m ago•0 comments

Supercomp.app Is Up for Sale

https://www.supercomp.app/
1•smiru•11m ago•0 comments

When Constitutional Guardrails Fail

https://bayesianpersuasion.com/posts/ice-constitutional-guardrails/
2•michaelsbradley•12m ago•0 comments

Show HN: The "Structural Formula" of LLMs – No more black boxes

https://github.com/kuruitinoji-sys/control-theory-information-dynamics
1•Kuruitinoji•12m ago•1 comments

Show HN: Python SDK for RamaLama AI Containers

https://github.com/ramalama-labs/ramalama-sdk
1•ersatz_username•13m ago•0 comments

Show HN: TetrisBench – Gemini Flash reaches 66% win rate on Tetris against Opus

https://tetrisbench.com/tetrisbench/
1•ykhli•14m ago•0 comments

Git as a tamperproof file archive using chained RFC3161 timestamps

https://medium.com/swlh/git-as-cryptographically-tamperproof-file-archive-using-chained-rfc3161-t...
1•fanf2•15m ago•0 comments

Seizing the Means of Production

https://taoofmac.com/space/notes/2026/01/25/2030#seizing-the-means-of-production
1•rcarmo•15m ago•0 comments

Whose Voice Is Missing?

https://read.perspectiveship.com/p/perspective-taking
1•mooreds•15m ago•0 comments

Everything you need to know about gold

https://substack.com/inbox/post/185670273
1•mooreds•17m ago•0 comments

TikTok USA Is Broken

https://www.theverge.com/news/867625/tiktok-down-weekend-broke-fyp-video-uploads-review
1•usernomdeguerre•17m ago•0 comments

Clawdbot Showed Me What the Future of Personal AI Assistants Looks Like

https://www.macstories.net/stories/clawdbot-showed-me-what-the-future-of-personal-ai-assistants-l...
1•compiler-guy•17m ago•1 comments

AirTag 2.0: Why This Update Matters More Than You Think

https://comuniq.xyz/post?t=756
1•01-_-•19m ago•1 comments

Notice of Collective Action Lawsuit Against Workday, INC

https://workdaycase.com
1•mooreds•19m ago•0 comments

Cable cuts, storms, and DNS: a look at Internet disruptions in Q4 2025

https://blog.cloudflare.com/q4-2025-internet-disruption-summary/
2•logicallee•21m ago•0 comments

Gamma rays quickly toughen nitrogen‑fixing bacteria

https://phys.org/news/2026-01-gamma-rays-quickly-toughen-nitrogenfixing.html
1•PaulHoule•23m ago•0 comments

A reliability layer that prevents LLM downtime and unpredictable cost

1•gabztoo•23m ago•0 comments

Microsoft: Power Query is now available in Excel for the web

https://www.neowin.net/news/power-query-is-now-fully-available-in-excel-for-the-web/
1•bundie•23m ago•0 comments

Godot 4.6 Release: It's all about your flow

https://godotengine.org/releases/4.6/
7•makepanic•24m ago•1 comments

The Phoney War

https://en.wikipedia.org/wiki/Phoney_War
2•RyanShook•24m ago•0 comments

Autonomous language-image generation loops converge to generic visual motifs

https://www.cell.com/patterns/fulltext/S2666-3899(25)00299-5
1•mhsdef•25m ago•0 comments

Apache Kafka for Ultra‑Low‑Latency Trading

https://www.confluent.io/blog/tier-1-bank-ultra-low-latency-trading-design/
1•intrepidsoldier•25m ago•0 comments

Tim Cook, Andy Jassy, and Lisa Su Attend White House Melania Doc Screening

https://www.theverge.com/news/867429/tim-cook-andy-jassy-white-house-melania-doc
6•cdrnsf•26m ago•3 comments

Could this AI save your relationship?

https://www.happyduo.app/
1•pdiaz3•28m ago•1 comments