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/

The Biggest Question in Physics Isn't What You Think It Is

https://pajuhaan.medium.com/the-biggest-question-in-physics-isnt-what-you-think-it-is-3a90bffe80b9
1•pajuhaan•57s ago•0 comments

Code-Mode Library: First library for tool calls via code execution

https://github.com/universal-tool-calling-protocol/code-mode
1•juanviera23•2m ago•0 comments

Show HN: Annotation to document and runtime validate Pandas and Polars dataframe

https://github.com/ThoughtWorksInc/daffy
1•vertti•5m ago•0 comments

What Now? Handling Errors in Large Systems

https://brooker.co.za:443/blog/2025/11/20/what-now.html
2•birdculture•7m ago•0 comments

The Future Belongs to the Machines. The Irrational Belongs to Us

https://bravenewteams.substack.com/p/the-future-belongs-to-the-machines
1•zauberberg•7m ago•1 comments

Cara Menghubungi CS Batik Air

1•R33VIL•8m ago•0 comments

China team simulates large-scale electronic warfare against Musk's Starlink

https://www.scmp.com/news/china/science/article/3333523/chinese-researchers-simulate-large-scale-...
1•NN88•9m ago•0 comments

Show HN: Bash Script Tools – front end for shellcheck and shfmt with AI autofix

https://github.com/overflowy/bash-script-tools
1•overflowy•13m ago•0 comments

Spaced Repetition Through Newsletters (2023)

https://www.atvbt.com/spaced-repetition-through-newsletters/
1•wonger_•16m ago•0 comments

Show HN: Fuzzy-redirect- preventing 404s by auto-redirect to closest valid route

https://github.com/Kuberwastaken/fuzzy-redirect
1•kuberwastaken•17m ago•0 comments

'The public has been lied to': recent documentary insists aliens exist

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

The Doge Succession Drama Elon Musk Left Behind

https://www.politico.com/news/magazine/2025/11/21/doge-elon-musk-succession-00641110
3•wolfcola•20m ago•0 comments

Show HN: MCP setup sucks – so I built a zero-config client with 2,700 agents

https://www.trylyra.com/mcp
1•nate_rw•21m ago•0 comments

A podcast host's guide to getting on podcasts

https://scalingdevtools.com/blog/a-podcast-hosts-guide-to-getting-on-podcasts
1•mooreds•21m ago•0 comments

Watching People Experience Their AI Eureka Moment

https://www.rickmanelius.com/p/watching-people-experience-their
1•mooreds•22m ago•0 comments

Hey America, Are You Ready for Fair Taxation?

https://optimisteconomy.substack.com/p/tax-cuts-kathryn-edwards
2•mooreds•23m ago•0 comments

Stem cell therapy helps AMD patients see again

https://www.sciencedaily.com/releases/2025/11/251121090736.htm
1•GeorgeWoff25•29m ago•0 comments

It's Not Always DNS: Exploring How Name Resolution Works

https://cefboud.com/posts/dns-name-resolution-deep-dive-internals/
4•byt3h3ad•30m ago•0 comments

Subtle Signs That You Are Ready to Retire

https://www.wsj.com/lifestyle/careers/retirement-ready-when-signs-d0c99bd3
2•Anon84•35m ago•2 comments

Bagaimana Cara Menghubungi CS Batik Air

1•R33VIL•37m ago•0 comments

WordPress Deep Dive

https://wiktorjarosz.com/wordpress/introduction/
1•thunderbong•38m ago•0 comments

CS Batik Air? +62.811.323.170

1•R33VIL•39m ago•0 comments

Liballocs: Meta-level run-time services for Unix processes a.k.a. dragging U

https://github.com/stephenrkell/liballocs
1•todsacerdoti•41m ago•0 comments

Bossware rises as employers keep closer tabs on remote staff

https://www.theregister.com/2025/11/23/bossware_monitor_remote_employees/
3•beardyw•41m ago•0 comments

Show HN: Zig's defer/errdefer for c99 and gnu11 C via macros

https://github.com/Trainraider/defer_h
1•Major_Baby_425•44m ago•0 comments

What Is a Shader?

https://www.makingsoftware.com/chapters/shaders#email
1•vismit2000•49m ago•0 comments

Show HN: Building a no-code browser automation system for OSINT

https://github.com/FauvidoTechnologies/PyBrowserAutomation
1•purge12•49m ago•0 comments

Nano Banana Pro (4K) at $0.04/image

https://seedreamimage.com/nano-banana-pro
1•xbaicai•49m ago•1 comments

Apple iOS 27 to Be No-Frills 'Snow Leopard' Update, Other Than New AI

https://www.bloomberg.com/news/newsletters/2025-11-23/apple-ios-27-snow-leopard-like-quality-focu...
2•sebiw•51m ago•1 comments

Amazon cut more than 1,800 engineers in record layoffs

https://www.cnbc.com/2025/11/21/amazon-cut-thousands-of-engineers-in-its-record-layoffs-filings-s...
3•miked85•52m ago•0 comments