frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

In-House Counsel Is About to Get Good

https://www.whatrunsai.com/research/harvey
1•hmichaelson20•1m ago•0 comments

Where We Expect AMD EPYC 9006 CPUs in the Era of Agentic AI – ServeTheHome

https://www.servethehome.com/where-we-expect-amd-epyc-9006-cpus-in-the-era-of-agentic-ai/
1•rbanffy•2m ago•0 comments

Micron projects tightening RAM shortages through 2028, generates record profit

https://www.tomshardware.com/pc-components/dram/micron-projects-tightening-ram-shortages-through-...
1•rbanffy•2m ago•0 comments

Books that made me a 10x engineer

https://www.thetrueengineer.com/p/3-books-that-made-me-a-10x-engineer
1•adletbalzhanov•2m ago•0 comments

Custom Automations are now GA in Factory

https://twitter.com/FactoryAI/status/2105713248507138483
1•kstrauser•3m ago•0 comments

.si Registrations Surge After US Shift to 'Super Intelligence'

https://circleid.com/posts/dot-si-domain-registrations-surge-after-us-shift-to-super-intelligence
2•speckx•3m ago•0 comments

US jobless claims near 57-year low as layoffs fall in September

https://www.reuters.com/legal/litigation/us-weekly-jobless-claims-fall-layoffs-drop-september-202...
1•frank_clover•4m ago•0 comments

ExplainDB: A Database System Built for Understandability

https://github.com/explaindb/explaindb
1•pykello•5m ago•0 comments

Show HN: I built an app that scours the internet to create a daily news briefing

https://github.com/yogthos/newsroom
1•yogthos•6m ago•0 comments

The Front Page of the Internet Is Killing RSS Feeds

https://www.extremetech.com/internet/the-front-page-of-the-internet-is-killing-rss-feeds
1•rreyes1979•6m ago•0 comments

Show HN: Yedric – Add a natural-language interface to your SaaS

https://www.yedric.ai
2•aaroneous•8m ago•0 comments

View: Program that drew, in 3D, what Apollo astronauts would see out the window

https://claude.ai/artifact/5cPjoQTJ8PvXF5FUwwbLEC
1•mariuz•10m ago•1 comments

Everybody Loves Big Boy

https://defector.com/everybody-loves-big-boy
1•speckx•12m ago•0 comments

Last.fm Album Linkr: adds 'headers' on Recent Tracks section and Album collages

https://github.com/StigNygaard/Stigs_Last.fm_Album_Linkr
1•Baljhin•13m ago•0 comments

EU/Jev – First System One Model Hosted in the EU

https://jev.bevel.software/
1•juanviera23•14m ago•0 comments

I Gave My OpenClaw Agent a Physical Body

https://www.wired.com/story/i-gave-my-openclaw-agent-physical-body-robot/
1•gmays•15m ago•0 comments

Twitter Follower Distribution (2022)

https://www.johndcook.com/blog/2022/08/09/twitter-follower-distribution/
1•theanonymousone•15m ago•0 comments

Show HN: RGBoo – interactive lofi stream for Halloween

https://rgboo.com/
2•na10•15m ago•1 comments

Record-Low 31% Say College Education Is 'Important'

https://news.gallup.com/poll/715133/record-low-say-college-education-important.aspx
2•bilsbie•17m ago•0 comments

Show HN: Vote on which of Hacker News' challenges for AI have been met

https://stoppels.ch/goalposts/
1•stabbles•20m ago•0 comments

TwIL-LM3-Pro: 3.6B formal-logic model that beats VibeThinker-3B

https://huggingface.co/webAI-Official/TwIL-LM3-Pro
3•CD_webai•22m ago•0 comments

Ask HN: Email leaked while traveling abroad?

2•thatonehack•23m ago•0 comments

The GPU Black Market That Washington Can't Shut Down

https://www.amcompute.com/blog/gpu-black-market-washington-cant-shut-down
2•ilreb•25m ago•0 comments

Pebble Round 2 Starts Shipping

https://repebble.com/blog/pebble-round-2-starts-shipping
1•gumby271•26m ago•0 comments

MCP server for editing Excel with real-time calc and diffs

https://github.com/pixelsmasher13/gridpath
2•escapingsingula•26m ago•0 comments

We are inventing the governor module

https://techcrunch.com/2026/09/30/openais-jev-clone-could-help-the-frontier-lab-stop-its-swarming...
1•gmarkwa•27m ago•0 comments

The AI Pascal's Wager

https://ploum.net/2026-10-01-pascal_wager.html
1•1matin•27m ago•0 comments

TanStack Intent v0.5: Skills you can maintain

https://tanstack.com/blog/intent-0.5-skills-you-can-maintain
2•chrisweekly•30m ago•0 comments

Echo, a new AI site to mimic the styles of particular writers or writing styles

https://echo.fulcrum.inc/
2•shaftoe444•30m ago•0 comments

Show HN: Taracode – a local DevOps agent, and 18 open models scored on one GPU

https://github.com/tara-vision/taracode
1•stefanoski•31m ago•0 comments