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

Comments

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

Show HN: CF Local Helpers – Dashboard for Cloudflare Workers Local Dev

https://github.com/bimsina/cf-local-helpers
1•bimsina•6m ago•0 comments

"You should never build a CMS"

https://www.sanity.io/blog/you-should-never-build-a-cms
1•handfuloflight•8m ago•0 comments

Will blockbuster obesity drugs revolutionize addiction treatment?

https://www.nature.com/articles/d41586-025-03911-x
1•qnleigh•9m ago•0 comments

Interlock – a circuit breaker and certification system for AI infrastructure

https://github.com/CULPRITCHAOS/Interlock
1•CULPRITCHAOS•16m ago•1 comments

ICE Holding Chinese Man Who Documented Uyghur Camps

https://www.wsj.com/world/china/ice-holding-chinese-man-who-documented-uyghur-camps-a4702045
2•gok•16m ago•0 comments

Counter Social – a next-generation anti abuse and user privacy social network

https://counter.social/index.html
1•inesranzo•17m ago•0 comments

Game Theory and Your Lawn

https://domofutu.substack.com/p/game-theory-and-your-lawn
1•wjb3•18m ago•0 comments

'It was like a dream': How Australia's rarest bird of prey was found

https://www.watoday.com.au/national/western-australia/it-was-like-a-dream-how-australia-s-rarest-...
1•defrost•26m ago•0 comments

Show HN: Rolldphobia – Bundle size analyzer with tree-shaking using Rolldown

https://rolldphobia.ssssota.dev/
1•ssssota•33m ago•0 comments

Hyrumrand – Golang random number generator based on random map iteration order

https://github.com/micrictor/hyrumrand
2•mtud•35m ago•0 comments

Ask HN: How does traceroute on airplane wifis work?

1•bjourne•37m ago•0 comments

Neutrino Alchemy: Sun's Ghost Particles Caught Transforming Atoms

https://www.sciencealert.com/neutrino-alchemy-suns-ghost-particles-finally-caught-transforming-atoms
1•Guestmodinfo•37m ago•0 comments

Pingfs: Stores your data in ICMP ping packets

https://github.com/yarrick/pingfs
1•linkdd•37m ago•0 comments

Design Is Search

https://twitter.com/karrisaarinen/status/1999730838280503775
2•gmays•39m ago•0 comments

Altman: Super intelligence in 10 years, more extraordinary things in 2026

https://openai.com/index/ten-years/
2•aurareturn•39m ago•1 comments

What happens when the coding becomes the least interesting part of the work

https://obie.medium.com/what-happens-when-the-coding-becomes-the-least-interesting-part-of-the-wo...
2•gmays•41m ago•0 comments

Ask HN: A browser that syncs history reliably across devices?

1•workfromspace•46m ago•0 comments

Pizlix: Memory Safe Linux from Scratch

https://fil-c.org/pizlix
2•nullbyte808•48m ago•0 comments

Send Me to Heaven (2013)

https://en.wikipedia.org/wiki/Send_Me_to_Heaven
2•gregsadetsky•50m ago•0 comments

Maths can help you wrap your presents better

https://www.bbc.com/future/article/20251212-how-maths-can-help-you-wrap-your-presents-better
1•1659447091•51m ago•0 comments

Vibe Engineering (2026)

https://www.manning.com/books/vibe-engineering
1•turtleyacht•52m ago•0 comments

We used Codex to build Sora for Android in 28 days

https://openai.com/index/shipping-sora-for-android-with-codex/
2•crorella•52m ago•1 comments

Investors commit quarter-billion dollars to startup designing "Giga" satellites

https://arstechnica.com/science/2025/12/investors-commit-quarter-billion-dollars-to-startup-desig...
1•BWStearns•1h ago•0 comments

Rails Pulse: Performance monitoring and debugging gems for Rails application

https://github.com/railspulse/rails_pulse
1•ksec•1h ago•0 comments

Tiger teeth, dried seahorses and shark fins sold illegally on Facebook

https://www.bbc.com/news/articles/ce91072g59no
1•1659447091•1h ago•0 comments

The Chinese Billionaires Having 100s of U.S.-Born Babies via Surrogate

https://www.wsj.com/us-news/chinese-billionaires-surrogacy-pregnancy-7fdfc0c3
15•jkuria•1h ago•1 comments

The Math of Universality

https://www.pma.caltech.edu/news/the-math-of-universality
2•ashishgupta2209•1h ago•0 comments

Black Pyramid, Alaska

https://vinyasi.substack.com/p/the-black-pyramid-of-alaska
1•vinyasi•1h ago•0 comments

Advanced Embedded Software Development at CU Boulder Final Projects

https://sites.google.com/colorado.edu/aesdf25finalprojects/home
3•mooreds•1h ago•1 comments

Tiobe Index for December 2025: R Joins the Top as SQL Climbs

https://www.techrepublic.com/article/news-tiobe-commentary-dec-2025/
6•smurda•1h ago•1 comments