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/

VNX+: Self-contained RF payload for hosting AI/ML applications out of the box

https://epiqsolutions.com/products/sdr/vnx-development-platform
2•teleforce•5m ago•1 comments

Show HN: Gptbased – LLM leaderboard that emails you when to switch

https://gptbased.com
1•gptbased•10m ago•0 comments

Midjourney Ultrasonic CT Scanner

https://www.midjourney.com/medical/blogpost
6•lnyan•10m ago•1 comments

Learning VPP: Filtering Packets at 100GbE Line Rate

https://haryachyy.wordpress.com/2026/06/17/vpp-packet-filtering-100gbe-line-rate/
1•tanelpoder•11m ago•0 comments

Midjourney Medical

https://www.midjourney.com/medical
7•ricochet11•19m ago•3 comments

Next-Latent Prediction Transformers Learn Compact World Models

https://jaydenteoh.github.io/blog/2026/nextlat
1•sorenjan•20m ago•0 comments

Manhattan's fastest bike messenger (1985) [video]

https://www.youtube.com/watch?v=xMvJ83XpGoI
2•droidjj•27m ago•0 comments

Show HN: Draft, Open Source Agent Context Sync/Collaboration

https://github.com/idodekerobo/draft
1•idodekerobo•27m ago•0 comments

Vevey – AI game dev for kids to build games, together

https://www.vevey.ai/
1•dvdhutch•27m ago•0 comments

Code Intelligence MCP Server

https://github.com/DeusData/codebase-memory-mcp
3•vantareed•28m ago•0 comments

Show HN: Rank scratch tickets in your state by expected value

https://scratchstats.ai
1•nlenn618•32m ago•0 comments

Former Tesla Exec Is Building the Home Heat Pump Musk Promised

https://www.notateslaapp.com/news/4313/former-tesla-exec-is-building-the-home-heat-pump-musk-prom...
1•voisin•36m ago•1 comments

Miuse: Agents for Guidance with Physical Tasks

https://miuse.tech/
1•pratt3000•36m ago•1 comments

Show HN: A world cup app built by football lovers

https://testflight.apple.com/join/f4gKRZwr
1•bootsybus•41m ago•0 comments

Show HN: I built a smart screen recording macOS

https://screeen.co
1•vinzdg•43m ago•0 comments

Tim Cook warns Apple may raise prices as memory costs surge

https://www.businessinsider.com/macbook-iphone-apple-price-hike-tim-cook-2026-6
3•mgh2•43m ago•2 comments

Finent – A privacy-first budgeting app built around your payday

https://www.budgetwithfinent.com/
1•vexelior•49m ago•0 comments

Free calculators for creator income, freelance rates, AI tool ROI, and so on

https://richinto.com/
4•iplaypc•50m ago•0 comments

A Kamal wrapper for multiple apps on a single server

https://singleserver.com/
2•DVassallo•51m ago•0 comments

CVE-2026-23111: exploiting and detecting a nftables UAF born from a security fix

https://medium.com/@miggo-engineering/detecting-the-nftables-catchall-use-after-free-cve-2026-231...
2•rafaeldavidtin•55m ago•0 comments

Watch Baseball Games in Realtime in 8-Bit View

https://kottke.org/26/06/watch-baseball-games-in-realtime-in-8-bit-view
2•ohjeez•55m ago•1 comments

Ask HN: AI models are built on all of us, should their weights act like patents?

3•rhuber•55m ago•0 comments

Rust port of transformers (1M lines of code)

https://github.com/cool-japan/trustformers/tree/master
4•hardwaresofton•1h ago•1 comments

Show HN: An open source job search plugin for Claude Code

https://github.com/agent-data/job-search
5•jb_hn•1h ago•1 comments

Comparisons as Predictable as the Sunrise

https://pudding.cool/2026/05/similes/
3•zdw•1h ago•0 comments

New SOTA: TrustedRouter Fusion Beats Fable and Frontier

https://trustedrouter.com/blog/fusion-evals-open-source
3•amirhirsch•1h ago•1 comments

Ask HN: Has anyone had success with SBIR grants and what is the process like?

4•lyfeninja•1h ago•2 comments

Show HN: Lastwordonearth.com

https://lastwordonearth.com
3•hnrich•1h ago•5 comments

Second carcass-eating fly species cleared by FDA for maggot wound therapy

https://arstechnica.com/health/2026/06/second-carcass-eating-fly-species-cleared-by-fda-for-maggo...
3•Bender•1h ago•0 comments

Playing with the language modeling abilities of gzip

https://robinpie.neocities.org/gzipt
4•robinpie•1h ago•0 comments