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

Comments

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

RuBee

https://computer.rip/2025-11-22-RuBee.html
2•Sniffnoy•4m ago•0 comments

Japan's gamble to turn island of Hokkaido into global chip hub

https://www.bbc.com/news/articles/c8676qpxgnqo
1•1659447091•5m ago•0 comments

The Cloudflare outage was a good thing

https://gist.github.com/jbreckmckye/32587f2907e473dd06d68b0362fb0048
1•radeeyate•8m ago•0 comments

KeePassXC 2.7.11 Released

https://keepassxc.org/blog/2025-11-23-2.7.11-released/
1•theodorejb•9m ago•0 comments

A free tool that stuns LLMs with thousands of invisible Unicode characters

https://gibberifier.com
2•wdpatti•12m ago•1 comments

McMaster Carr – The Smartest Website You Haven't Heard Of

https://www.bedelstein.com/post/mcmaster-carr
1•jcartw•15m ago•0 comments

Style Reference vs. Image Prompts: What's the Difference?

https://image2prompts.com/blog/style-reference-vs-image-prompts-what-the-difference
1•zack119•18m ago•0 comments

Visualizing asymmetry in the 196 Lychrel chain (50k steps, 20k digits)

1•jivaprime•21m ago•0 comments

Napster Said It Raised $3B from an Investor. Now 'Investor' and 'Money' Are Gone

https://www.forbes.com/sites/phoebeliu/2025/11/23/napster-said-raised-3-billion-mystery-investor-...
1•pseudolus•24m ago•0 comments

Ouya

https://en.wikipedia.org/wiki/Ouya
3•Ariarule•26m ago•2 comments

'The public has been lied to': made doc insists that aliens exist

https://www.theguardian.com/film/2025/nov/22/age-of-disclosure-documentary-aliens
1•handfuloflight•31m ago•0 comments

SecIron Is Recruiting for Technical Support in KL, Malaysia-Challenge Yourself

https://malaysia.indeed.com/job/mobile-app-securit-engineer-93c4f95524a00f8f
1•bboypy•32m ago•0 comments

Show HN: 3M km interferometer concept using Saturn moons

https://zenodo.org/records/17665935
1•kurtswendson•33m ago•0 comments

We stopped roadmap work for a week and fixed 189 bugs

https://lalitm.com/fixits-are-good-for-the-soul/
9•signa11•36m ago•1 comments

B-Trees: Why Every Database Uses Them

https://mehmetgoekce.substack.com/p/b-trees-why-every-database-uses-them
2•signa11•37m ago•0 comments

Valve makes almost $50M per employee

https://www.tomshardware.com/video-games/pc-gaming/valve-makes-almost-usd50-million-per-employee-...
2•xu_ituairo•39m ago•0 comments

US issues security NOTAM for Venezuelan airspace

https://www.flightradar24.com/blog/aviation-news/us-issues-security-notam-for-venezuelan-airspace/
4•8ig8•43m ago•0 comments

Show HN: I slowed down and visualized birdsong [video]

https://www.youtube.com/watch?v=mhHGuAUUCUE
2•andai•44m ago•0 comments

Ask HN: Hearing aid wearers, what's hot?

41•pugworthy•47m ago•0 comments

Anna's Archive 'WorldCat Scrape' Lawsuit Drops $5M Claim, Pivots to Takedown

https://torrentfreak.com/annas-archive-worldcat-scrape-lawsuit-drops-5m-claim-pivots-to-takedown-...
4•t-3•53m ago•2 comments

Passing the Torch – My Last Root DNSSEC KSK Ceremony as Crypto Officer 4

https://technotes.seastrom.com/2025/11/23/passing-the-torch.html
8•greyface-•56m ago•0 comments

Future War Will Be Fought with Sticks and Stones

https://smallwarsjournal.com/2025/11/20/future-war-will-be-fought-with-sticks-and-stones/
4•Gaishan•1h ago•1 comments

My Life Is a Lie: How a Broken Benchmark Broke America

https://www.yesigiveafig.com/p/part-1-my-life-is-a-lie
24•jger15•1h ago•10 comments

A Unified Theory of Ego, Empathy, and Humility at Work

https://matthogg.fyi/a-unified-theory-of-ego-empathy-and-humility-at-work/
2•mrmatthogg•1h ago•0 comments

LowType: Elegant Types in Ruby

https://github.com/low-rb/low_type
3•lowtype•1h ago•0 comments

Show HN: YipYap – I wanted something to tell me what to do with my Stripe KPIs

https://yipyap.fyi
1•zach_olson•1h ago•0 comments

Preserve? Conserve? AI will need reasons

1•sonicvrooooom•1h ago•1 comments

Practical Security in Production

https://queue.acm.org/detail.cfm?id=3773097
1•tkhattra•1h ago•0 comments

Mew Design – Natural language to editable UI/graphic design

https://mew.design
2•bkidyy•1h ago•1 comments

Pabst, Pamphlets and a Petition: A Harvard-Yale Tailgate in the Trump Era

https://www.nytimes.com/2025/11/23/us/politics/yale-harvard-football-trump.html
2•whack•1h ago•1 comments