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/

The Weird Way the 404 Media Zine Was Built

https://tedium.co/2025/12/10/404-media-zine-linux-affinity/?
1•robenkleene•1m ago•0 comments

Wine Cooler

https://newsletters.feedbinusercontent.com/800/80006232c399a658c195f7c70cda025e59f582b3.html
1•robenkleene•2m ago•0 comments

Nokia N900 Necromancy – giving a new life to a classic Linux smartphone

https://yaky.dev/2025-12-11-nokia-n900-necromancy/
1•yaky•2m ago•0 comments

The curious case of Mark V. Shaney (2008) [pdf]

https://www.cs.rice.edu/~devika/comp140/Shaney.pdf
1•susam•5m ago•0 comments

What One Airline's Meltdown Reveals About India's Economy

https://www.nytimes.com/2025/12/11/business/india-indigo-competition-antitrust.html
1•ripe•5m ago•0 comments

Google DeepMind Will Open AI Lab in UK to Discover New Materials

https://www.bloomberg.com/news/articles/2025-12-11/google-deepmind-will-open-a-robotic-ai-lab-in-...
1•gmays•8m ago•0 comments

What our missing ocean float revealed about Antarctica's melting glaciers

https://theconversation.com/what-our-missing-ocean-float-revealed-about-antarcticas-melting-glaci...
2•croes•8m ago•0 comments

Reddit launches high court challenge to Australia's under-16s social media ban

https://www.theguardian.com/australia-news/2025/dec/12/reddit-high-court-challenge-social-media-b...
2•t0lo•9m ago•0 comments

Price of a 'bot army' revealed across online platforms

https://www.cam.ac.uk/stories/price-bot-army-global-index
1•gnabgib•11m ago•0 comments

Trump signs executive order seeking to ban states from regulating AI companies

https://www.nbcnews.com/tech/tech-news/trump-signs-executive-order-seeking-ban-state-laws-ai-rcna...
1•andsoitis•11m ago•1 comments

Austria bans headscarves in schools for under-14s

https://www.bbc.com/news/articles/cn4djk0jj4xo
1•andsoitis•13m ago•0 comments

Instead of fixing WoW's new floating house exploit, Blizzard makes it official

https://arstechnica.com/gaming/2025/12/instead-of-fixing-wows-new-floating-house-exploit-blizzard...
1•Bender•15m ago•0 comments

MAPF-GPT – a deep learning-based model for solving MAPF problems

https://github.com/CognitiveAISystems/MAPF-GPT
1•Stevvo•17m ago•0 comments

Trump signs executive order for single national AI regulation framework

https://www.cnbc.com/2025/12/11/trump-signs-executive-order-for-single-national-ai-regulation-fra...
3•mfiguiere•18m ago•1 comments

FuckItJS uses technology to make sure your JavaScript code runs no matter what

https://github.com/mattdiamond/fuckitjs
2•solarmist•20m ago•0 comments

China & EU countries lead objections to Trump carve-out on global minimum tax

https://www.ft.com/content/318daa72-8629-45e2-9179-51721e03739d
1•hhs•22m ago•0 comments

Maybe we don't need a server

https://lecaro.me/20251203-maybe-we-do-not-need-a-server.html
2•birdculture•31m ago•0 comments

Show HN: Use TypeScript in Servo Browser Fork

https://github.com/pannous/servo/
1•singularity2001•36m ago•0 comments

Being a Writer in the Era of Influencer

https://www.robkhenderson.com/p/being-a-writer-in-the-age-of-the
2•paulpauper•36m ago•0 comments

My Conversation with the Excellent Gaurav Kapadia

https://marginalrevolution.com/marginalrevolution/2025/12/my-conversation-with-the-excellent-gaur...
1•paulpauper•36m ago•0 comments

Make It Go Designing Interactive SVGs with AI Code Help

https://turbek.com/Designing-Interactive-SVGs-with-AI/
1•e2e4•37m ago•0 comments

A faster is_leap_year function (full-range, C++)

https://www.benjoffe.com/fast-date
1•benjoffe•41m ago•2 comments

NYT Connections LLM Benchmark

https://github.com/lechmazur/nyt-connections
1•cainxinth•43m ago•0 comments

Execute AI Agents with Markdown

https://github.com/johnlindquist/mdflow
2•handfuloflight•44m ago•0 comments

Microsoft finally realizes the threat SteamOS poses

https://www.techradar.com/computing/windows/microsoft-finally-realizes-the-threat-steamos-poses-b...
1•thewebguyd•45m ago•0 comments

Show HN: SetLocale – Syntax-safe localization for developers (JSON, PHP, XML)

https://setlocale.xyz/
1•byshako•45m ago•0 comments

What's the Difference Between an ACID and a BASE Database

https://aws.amazon.com/compare/the-difference-between-acid-and-base-database/
1•teleforce•46m ago•0 comments

A VC's 2026 Crystal Ball

https://medium.com/bread-and-butter-ventures/a-vcs-2026-crystal-ball-that-is-assuredly-going-to-p...
1•azhenley•49m ago•0 comments

What Is Comprehensible Input?

https://www.dreaming.com/blog-posts/what-is-comprehensible-input
1•carabiner•52m ago•0 comments

Intercom launches free AI Startup Pack with $100k+ in credits / value

https://fin.ai/startup-pack
3•chenchenhuo•52m ago•1 comments