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/

Universal Commerce Protocol (UCP)

https://developers.google.com/merchant/ucp
2•jcfrei•6m ago•0 comments

35 Theses on the WASPs

https://scholarstage.substack.com/p/35-theses-on-the-wasps
1•barry-cotter•10m ago•0 comments

U.S. Attacked Boat With Aircraft That Looked Like a Civilian Plane

https://www.nytimes.com/2026/01/12/us/politics/us-boat-attacks-law.html
4•jbegley•10m ago•2 comments

Controlling local web servers using xbar

https://blog.gingerbeardman.com/2026/01/12/xbar-local-web-server-controller/
1•msephton•12m ago•0 comments

The will to win is nothing without the will to sleep

https://therundownbytherunningeffect.substack.com/p/the-2025-run-down-recap
2•RalphHavensPT•13m ago•0 comments

Raid on the Medway

https://en.wikipedia.org/wiki/Raid_on_the_Medway
1•vinnyglennon•15m ago•0 comments

Even Linus Torvalds is trying his hand at vibe coding (but just a little)

https://arstechnica.com/ai/2026/01/hobby-github-repo-shows-linus-torvalds-vibe-codes-sometimes/
1•fleahunter•17m ago•0 comments

Veritensor – open-source tool to scan AI models for malware and license issues

https://github.com/ArseniiBrazhnyk/Veritensor
1•arseniibr•19m ago•1 comments

Minnesota sues Trump administration to block surge of federal immigration agents

https://www.reuters.com/world/minnesota-sues-trump-administration-block-surge-federal-immigration...
5•mickle00•19m ago•0 comments

Show HN: AI Elements Vue – A Port of Vercel's AI Elements UI Library

https://github.com/vuepont/ai-elements-vue
1•peoray•20m ago•0 comments

Discord dataset of 78M messages, voice sessions, actions and servers

https://twitter.com/H4ckmanac/status/2010691804132454708
1•circularfoyers•21m ago•0 comments

Generative AI and the end of permanent car paint

https://realizeai.substack.com/p/the-evolution-of-personalization
1•rafaelmdec•21m ago•0 comments

Ask HN: DevOps Learning Resources

1•jack_pp•22m ago•0 comments

PauseOS: Distraction-Free Phone OS

https://pauseos.com/
2•MinimalAction•24m ago•1 comments

You can now reserve a hotel room on the Moon for $250k

https://arstechnica.com/space/2026/01/you-can-now-reserve-a-hotel-room-on-the-moon-for-250000/
2•dangle1•25m ago•0 comments

Great Green Wall 2.0: China is geoengineering deserts with blue-green algae

https://www.scmp.com/news/china/science/article/3338326/great-green-wall-20-china-geoengineering-...
3•jnord•25m ago•1 comments

Who told you you couldn't do that?

https://theaiunderwriter.substack.com/p/who-told-you-you-couldnt-do-that
1•participant26•28m ago•0 comments

Wireless Power Beamed from Moving Aircraft

https://spectrum.ieee.org/wireless-power-movin-airplane
1•WaitWaitWha•31m ago•0 comments

Queen bumblebees are poor foragers thanks to sparse tongue hair

https://www.sciencenews.org/article/queen-bumblebees-tongue-hair-foraging
1•WaitWaitWha•32m ago•0 comments

Nintendo Switch 2 sales stumble over Christmas

https://www.thegamebusiness.com/p/nintendo-switch-2-sales-stumble-over
1•comebhack•32m ago•0 comments

Phind Is Shutting Down

2•MekaiGS•33m ago•1 comments

Interview Coder Just Leaked Full Names and Companies of All SWEs Who Cheated [video]

https://www.youtube.com/watch?v=8T1vW85xFiQ
9•mickle00•41m ago•0 comments

Bill Ackman Funds ICE Agent GoFundMe Run by Nazi Imagery Poster

https://theintercept.com/2026/01/12/ice-gofundme-bill-ackman-jonathan-ross/
16•cdrnsf•42m ago•3 comments

Micro SD Card Extender – 68cm (26 inch) long flex cable

https://www.adafruit.com/product/3688
2•striking•44m ago•0 comments

XMPP Integration with N8n – ProcessOne

https://www.process-one.net/blog/xmpp-integration-with-n8n/
1•neustradamus•45m ago•0 comments

Clipboard Images in Claude Code CLI

https://www.woodcp.com/2026/01/clipboard-images-in-claude-code-cli/
2•tawman•46m ago•1 comments

Whatever happened to Trump Mobile's promise of a golden phone?

https://www.pbs.org/newshour/economy/whatever-happened-to-trump-mobiles-promise-of-a-golden-phone
12•type0•49m ago•0 comments

RVAA: Recursive Vision-Action Agent for Long Video Understanding

https://github.com/mohammed840/RLM-implementation
1•tmzt•51m ago•0 comments

AI's Memorization Crisis

https://www.theatlantic.com/technology/2026/01/ai-memorization-research/685552/
1•twalichiewicz•51m ago•2 comments

Show HN: I built a 220-lesson programming academy using only Claude Code

https://academy.thunderson.dev
1•eyrockscript•57m ago•0 comments