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/

Robotics Needs World Models

https://www.signalfire.com/blog/missing-piece-in-robotics-a-world-model
1•zviugfd•27s ago•0 comments

PolyShapr

https://chambercode.com/music/polyshapr/
1•gregsadetsky•2m ago•0 comments

The US national debt will soon be growing faster than the economy itself

https://fortune.com/2026/01/22/how-big-national-debt-when-recession-financial-crisis-could-hit/
2•testing22321•2m ago•0 comments

US officially exists World Health Organization

https://abcnews.go.com/Health/us-officially-exits-world-health-organization-accusing-agency/story...
2•testing22321•5m ago•0 comments

USA Exits WHO

https://www.hhs.gov/press-room/united-states-completes-who-withdrawal.html
2•Swizec•7m ago•0 comments

What Is Control Flow Analysis for Lambda Calculus? [audio]

https://podcasts.apple.com/us/podcast/what-is-control-flow-analysis-for-lambda-calculus/id1493036...
1•matt_d•11m ago•1 comments

Show HN: Extracting React apps from Figma Make's undocumented binary format

https://albertsikkema.com/ai/development/tools/reverse-engineering/2026/01/23/reverse-engineering...
1•albertsikkema•11m ago•1 comments

ClickHouse launches natively integrated Postgres managed service

https://clickhouse.com/blog/postgres-managed-by-clickhouse
1•saisrirampur•12m ago•0 comments

What it's like to dissect a cadaver (2022)

https://alok.github.io/2022/11/09/dissection/
1•Gegenkraft•13m ago•0 comments

Blogroll.club – a curated collection of blogs and personal sites

https://blogroll.club
1•Curiositry•16m ago•0 comments

Feral cats and foxes have driven many Australian mammals to extinction

https://theconversation.com/yes-feral-cats-and-foxes-really-have-driven-many-australian-mammals-t...
1•defrost•17m ago•0 comments

Common bad arguments for the correct answer to the Monty Hall Problem

https://link.springer.com/article/10.1007/s11229-025-05389-6
1•mellosouls•21m ago•0 comments

VidBee: Free Open Source Video Downloader

https://vidbee.org/
1•jonbaer•22m ago•0 comments

Remotion: Make Videos Programmatically

https://www.remotion.dev/
1•jonbaer•23m ago•0 comments

Show HN: Audio AI had a wild day – 5 major open-source / real-time TTS drops

https://github.com/FlashLabs-AI-Corp/FlashLabs-Chroma
1•pratik227•25m ago•0 comments

TikTok deal finalized to stop US ban: Oracle, Silver Lake, MGX to hold 15% each

https://www.reuters.com/world/china/tiktok-reaches-deal-new-us-joint-venture-avoid-american-ban-2...
3•aarondong•26m ago•0 comments

Dynamic GHC Matrix in GitHub CI

https://hasufell.github.io/posts/2026-01-22-dynamic-ghcup-action.html
2•todsacerdoti•28m ago•0 comments

Show HN: Learning to Test Code Changes with RL

https://www.morphllm.com/blog/browser-verification
1•bhaktatejas922•30m ago•0 comments

Former FTX crypto executive Caroline Ellison released from federal custody

https://www.theguardian.com/technology/2026/jan/22/ftx-crypto-executive-caroline-ellison-prison-r...
2•treetalker•31m ago•0 comments

Bay Area software rep. lost $176K after accepting remote job she thought with FB

https://abc7news.com/post/bay-area-software-rep-lost-176k-savings-accepting-remote-job-she-though...
3•randycupertino•45m ago•1 comments

Joy of a Competent Beginner

https://xydinesh.com/posts/joy-of-competent-beginner/
1•xydinesh•46m ago•1 comments

Florida's Unprecedented Execution Pace

https://deathpenaltyinfo.org/new-report-examines-floridas-unprecedented-execution-pace-and-trends...
3•weslleyskah•47m ago•0 comments

Show HN: C/C++ Cheatsheet – a modern, practical reference for C and C++

https://github.com/crazyguitar/cppcheatsheet
3•crazyguitar•48m ago•0 comments

Show HN: The firmware that got me detained by Swiss Intelligence

https://github.com/seabass011/davos-incident-firmware
3•reutinger•51m ago•2 comments

Rust Burn 0.20.0 Release: Unifying CPU and GPU Kernels with CubeCL

https://burn.dev/blog/release-0.20.0/
2•stmw•52m ago•0 comments

Autodesk burns the village to feed AI and the Cloud – cuts 7% of workforce

https://blog.adafruit.com/2026/01/22/autodesk-burns-the-village-to-feed-ai-and-the-cloud-cuts-7-o...
4•zdw•55m ago•0 comments

Introduction to Coinduction in Agda Part 1: Coinductive Programming

https://jesper.cx/posts/coinduction-part-1.html
1•matt_d•55m ago•0 comments

Show HN: Verify Unlimited Emails with 99.9% accuracy

https://email2verify.com/
1•aswinsilvadasan•56m ago•1 comments

Show HN: Public Key Directory – Key Transparency for the Fediverse

https://publickey.directory
2•some_furry•1h ago•0 comments

Chinese AI is a risk for Europe. So is shunning it

https://www.economist.com/leaders/2026/01/22/chinese-ai-is-a-risk-for-europe-so-is-shunning-it
1•petethomas•1h ago•0 comments