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

Comments

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

Show HN: CastLoom Pro – Turn podcasts into a personal knowledge base

https://castloompro.toolooz.com/?lang=en
1•MikeLuLu•46s ago•0 comments

iOS 27 Will Reportedly Be Like Mac OS X Snow Leopard

https://www.macrumors.com/2026/03/15/ios-27-will-reportedly-be-like-mac-os-x-snow-leopard/
1•mefengl•2m ago•0 comments

Why I'm Suing Grammarly

https://www.nytimes.com/2026/03/13/opinion/ai-doppelganger-deepfake-grammarly.html
1•lxm•2m ago•0 comments

Training-Free Infinite Video Generation via Evolving Memory Tokens

https://memrope.github.io/
1•E-Reverance•2m ago•0 comments

The Answer Is Right in Front of You

https://substack.com/@lagz/note/p-191082824
1•lagz•13m ago•0 comments

SiO2 spheres for enhancing the fire safety and radiative cooling performance

https://www.sciencedirect.com/science/article/pii/S2589965125001679
1•PaulHoule•15m ago•0 comments

Clock-accurate FPGA replacement for NES PPU

https://github.com/andkorzh/PPU-LITE
2•zdw•16m ago•0 comments

Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

https://en.wikipedia.org/wiki/Buffalo_buffalo_Buffalo_buffalo_buffalo_buffalo_Buffalo_buffalo
2•JumpCrisscross•18m ago•0 comments

Getting the most out of Claude agent teams

https://dheer.co/claude-agent-teams/
1•bushido•21m ago•1 comments

Claude says no (GitHub gist)

https://gist.github.com/robertkarl/d57c05bda405fda810386611903a45f7
2•robertkarljr•21m ago•1 comments

Let AI control the browser securely

https://relay.proxybase.xyz
1•m00dy•22m ago•0 comments

One Battle After Another Review

https://www.tanishsmoviereviews.com/reviews/one_battle_after_another_2025.html
2•moviet•32m ago•2 comments

Remember Clippy

https://rememberclippy.com/
2•kierangill•35m ago•0 comments

Show HN: Synthea Fhir Data in BigQuery

1•brady_bastian•36m ago•0 comments

Nginx as an API gateway in 2026 – complete guide with real configs

https://www.grizzlypeaksoftware.com/articles/p/nginx-as-an-api-gateway-in-2026-the-complete-guide...
1•comgen42•36m ago•1 comments

Show HN: IdeaCred – automated scoring for GitHub repos

1•spranab•37m ago•0 comments

Death of 'He Is a Coding Machine'

https://medium.com/@ggonweb/death-of-he-is-a-coding-machine-f2f7c0818f8e
2•ggonweb•38m ago•0 comments

Warp-types: GPU shuffle UB becomes a compile error (Rust, Lean proof, zero cost)

https://github.com/modelmiser/warp-types
1•modelmiser•39m ago•1 comments

Swapped our heavy async pipeline for LEXINOVA

1•LEXINOVAFaqs•43m ago•0 comments

Show HN: Search for Apple Messages

https://github.com/dmd/imessage-search
2•dmd•44m ago•0 comments

Show HN: Regrada – The CI gate for LLM behavior

https://www.regrada.com/
1•matiasmolinolo•46m ago•0 comments

Show HN: Situation Monitor

https://www.situation-monitor.org/
1•zarathustra333•47m ago•0 comments

Interpret: China

https://interpret.csis.org/
1•gone35•48m ago•0 comments

Team House: How JSOC Uses Instagram Ads to Track Terrorists – Mike Yeagley [video]

https://www.youtube.com/watch?v=OACwlV9I5LM
1•NN88•48m ago•0 comments

Yeahchain, a high-throughput data sync layer

1•YeahchainTECH•48m ago•0 comments

Supply-chain attack using invisible code hits GitHub and other repositories

https://arstechnica.com/security/2026/03/supply-chain-attack-using-invisible-code-hits-github-and...
2•pabs3•49m ago•1 comments

Monitoring high-load systems with PULSESUN

1•PULSESUN•55m ago•0 comments

Automating data parsing for Mindzo Investment Union

1•MindzoFAQs•59m ago•0 comments

Making Chocolates: Lessons Learned

https://brian.jp/blog/making-chocolates-lessons-learned-35/
1•lofties•59m ago•1 comments

NFL linebacker charged w. killing girlfriend asked ChatGPT advice b4 calling 911

https://www.nbcnews.com/news/us-news/ex-nfl-linebacker-charged-killing-girlfriend-allegedly-asked...
1•randycupertino•1h ago•0 comments