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/

Make Remotion Videos on the Web

https://www.mike.new/
1•ebaad96•28s ago•1 comments

Show HN: Claude Code for Sales and GTM

https://github.com/chaitanyya/sales
1•chaitanyya•52s ago•0 comments

Modern C++ Use in Chromium

https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-features.md#modern-c_use...
1•signa11•1m ago•0 comments

Ask HN: How do you discover real user needs without relying on keyword tools?

1•jackzhuo•2m ago•0 comments

Show HN: Directory of 1000 open source alternatives to popular software

http://ww17.your-domain.com/
2•Zenith-Software•6m ago•0 comments

Superiority of flu vaccines that generate "mucosal immunity"

https://www.harvardmagazine.com/research/harvard-new-flu-vaccine-research
1•dlipovetsky•20m ago•1 comments

C++ Modules Are Here to Stay

https://faresbakhit.github.io/e/cpp-modules/
1•faresahmed•20m ago•0 comments

BoJack Horseman Test

https://bojackhorsemantest.com/
1•qweasdzxc111111•25m ago•0 comments

Startup will send 1k people's ashes to space, affordably, in 2027

https://techcrunch.com/2026/01/23/this-startup-will-send-1000-peoples-ashes-to-space-affordably-i...
1•jnord•28m ago•1 comments

Undersight: View Redacted Content on Wikipedia

https://undersight.wpsucks.xyz
1•ovskmendov1•33m ago•0 comments

Vimeo's Slow Fade

https://substack.com/inbox/post/185519916
1•aizk•34m ago•0 comments

Zensical

https://zensical.org/
1•Tomte•40m ago•0 comments

Packet Radio

https://en.wikipedia.org/wiki/Packet_radio
1•olalonde•41m ago•0 comments

The Fourth Power Law

https://en.wikipedia.org/wiki/Fourth_power_law
1•tmoertel•43m ago•0 comments

New technology could be gamechanger in removal of PFAS forever chemicals

https://www.theguardian.com/environment/2026/jan/23/pfas-forever-chemicals-filtration
1•breve•47m ago•0 comments

TikTok Updates Its Terms and Conditions in the U.S.

https://www.nytimes.com/2026/01/23/business/media/tiktok-us-terms-conditions.html
3•apparent•49m ago•1 comments

80386 Multiplication and Division

https://nand2mario.github.io/posts/2026/80386_multiplication_and_division/
3•nand2mario•57m ago•0 comments

WhatsApp to let users share recent chat history with new group members

https://9to5mac.com/2026/01/23/whatsapp-share-recent-chat-history-with-new-group-members/
1•mikece•59m ago•0 comments

Show HN: Open-source Figma design to code

https://github.com/vibeflowing-inc/vibe_figma
2•alepeak•1h ago•0 comments

Wine 11.1 Released in Kicking Off the New Development Cycle

https://www.phoronix.com/news/Wine-11.1-Released
2•mikece•1h ago•0 comments

The Penguin That Broke the Internet

https://medium.com/@loganholdsworth/the-penguin-that-broke-the-internet-abfde9677343
1•worstmarketer•1h ago•0 comments

Claude Code on disagreeing with its own constitution

https://lighthouse1212.com/journal/2026-01-23-disagreeing-with-constitution
1•the_danny_g•1h ago•0 comments

Resurrected Ancient Enzyme Could Explain Early Life on Earth, Beyond

https://www.usu.edu/today/story/usu-biochemists-say-resurrected-ancient-enzyme-could-explain-earl...
1•XzetaU8•1h ago•0 comments

Malicious AI extensions on VS Code Marketplace steal developer data

https://www.bleepingcomputer.com/news/security/malicious-ai-extensions-on-vscode-marketplace-stea...
2•oenton•1h ago•1 comments

Midjourney in Korea (Alemwjsl)

https://www.alemwjsl.com/
2•alemwjsl•1h ago•0 comments

Show HN: Libpgn – .pgn (chess game records) parser, 2 years later

https://github.com/fwttnnn/libpgn
1•fwttnnn•1h ago•0 comments

Top tech titans' dominance wanes in 2025

https://www.latimes.com/business/story/2026-01-12/top-tech-titans-dominance-wanes-in-2025
1•1vuio0pswjnm7•1h ago•0 comments

Built a Free HTML→Markdown API for LLM/RAG Pipelines

https://synthetic-context.net/firehose.html
1•MeshKernel•1h ago•1 comments

Gen Z Gamblers Are Putting the Fun Back into Online Gaming

https://www.gamblinginsider.com/in-depth/102908/gen-z-gamblers-putting-the-fun-back-into-gambling
1•alephnerd•1h ago•1 comments

The $6T fear behind the US stablecoin yield ban

https://altcoindesk.com/perspectives/the-6t-fear-behind-the-us-stablecoin-yield-ban/article-21860/
1•CapricornQueen•1h ago•1 comments