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/

mcelog: Logs and accounts machine checks on modern x86 Linux systems

https://www.mcelog.org/
1•teleforce•53s ago•0 comments

Show HN: Takes – A Daily Chess Solitaire Game

https://takes.labs.clevergoat.com
1•juannyp•5m ago•0 comments

You can't open 2 cameras with getUserMedia at same time on Android and iOS

https://tony-xlh.github.io/getUserMedia-multiple-camera/
1•julienreszka•8m ago•1 comments

GIC, Sequoia, Index purchase Notion shares in private tender offer

https://www.notion.com/blog/gic-sequoia-index-purchase-notion-shares
1•doppp•8m ago•0 comments

Clawdbot Is Now Moltbot

https://twitter.com/moltbot/status/2016058924403753024
2•chl•10m ago•0 comments

XAgent CLI – AI assistant that can control your mouse and keyboard

https://github.com/xAgent-AI/xagent
1•ouyangwenli•10m ago•1 comments

One Hundred Years of Television

https://diamondgeezer.blogspot.com/2026/01/tv100.html?m=1
1•beardyw•11m ago•0 comments

Show HN: DNS Monitor

https://monitordns.app/
1•rsc-dev•15m ago•0 comments

Software Pump and Dump

http://tautvilas.lt/software-pump-and-dump/
2•brisky•16m ago•0 comments

Two empty chairs: why "obvious" decisions keep breaking production

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

Things got too easy with AI

https://gusarich.com/blog/things-got-too-easy
1•Gusarich•17m ago•0 comments

Glass Core Substrates and Glass Interposers: Advanced Packaging for AI and HPC

https://www.microwavejournal.com/articles/44910-glass-core-substrates-and-glass-interposers-new-g...
1•teleforce•18m ago•0 comments

What happens to the human body in 49C heat? Australians are finding out

https://www.theguardian.com/australia-news/2026/jan/27/what-happens-to-the-human-body-in-49c-heat...
1•beardyw•19m ago•0 comments

Voice-first dating app that matches you in 4 days

https://voicevibe.dating/
2•evercrestaimee•20m ago•2 comments

Bop Spotter

https://walzr.com/bop-spotter
1•mattmark•22m ago•1 comments

South Korea's Edenlux set for U.S. debut of eyestrain wellness device

https://techcrunch.com/2026/01/26/south-koreas-edenlux-set-for-u-s-debut-of-eye-strain-wellness-d...
2•plun9•25m ago•0 comments

Automating Image Compression

https://www.ramijames.com/thoughts/on-automating-image-compression
8•ramijames•26m ago•0 comments

Shorlabs: Deploy back ends without the hassle. (OSS Alternative to Render)

https://www.shorlabs.com/
10•shorlabss•26m ago•0 comments

Ask HN: What's your favorite self-hosted application?

3•surrTurr•30m ago•0 comments

Ask HN: What is the hair on fire problem in your company?

2•nemath•35m ago•0 comments

Trump's $6T crypto plot [video]

https://www.youtube.com/watch?v=hqNxmWYMAr4
2•simonebrunozzi•39m ago•0 comments

Summary of CVE-2026-23864

https://vercel.com/changelog/summary-of-cve-2026-23864
1•tamnd•39m ago•0 comments

Show HN: Externalized Properties, a modern Java configuration library

https://github.com/joel-jeremy/externalized-properties
1•jeyjeyemem•41m ago•0 comments

Collatz High Cycles Do Not Exist (K. Knight), Discrete Mathematics 349(3), 2023

https://hal.science/hal-04261183/document
1•vismit2000•42m ago•0 comments

Show HN: GetClawdbot – A Community Guide and Skill Hub for Clawdbot

https://getclawdbot.org
1•medivhX•44m ago•1 comments

Chanfana: OpenAPI 3.1 and Zod for Hono/itty-router on Cloudflare Workers

https://github.com/cloudflare/chanfana
1•Lwrless•47m ago•0 comments

Syncthing: Open-Source Continuous File Synchronization

https://github.com/syncthing/syncthing
1•AbuAssar•48m ago•0 comments

Nixtamal: Fulfilling, Pure Input Pinning for Nix

https://nixtamal.toast.al
2•toastal•50m ago•0 comments

Microsoft ordered to stop tracking school children

https://noyb.eu/en/noyb-win-microsoft-ordered-stop-tracking-school-children
2•HotGarbage•50m ago•0 comments

Ask HN: What's your wiring pattern for large addressable LED installs?

3•emmasuntech•52m ago•2 comments