ziolko / babel-plugin-auto-await

Automatically await every expression in async function
MIT License
27 stars 4 forks source link

Typescript and NestJs #4

Open andreinwald opened 2 months ago

andreinwald commented 2 months ago

Hello! Great idea of library! Is it possible to use this library with Typescript and NestJs?

If not, have you seen TS plugins for that?

ziolko commented 1 month ago

Hi @andreinwald. Sorry for the late reply. Unfortunately, I think there's no way to make Typescript understand how this babel plugin works. I considered this in the past but didn't find a way to make it work.

andreinwald commented 1 month ago

And if not Babel, but something else from Typescript? like transformers, ts-patch or something.

I would be grateful for any ideas or direction, and then I’ll go figure it out on my own.

ziolko commented 1 month ago

This is interesting - I didn't know about ts-patch before. Let me play with it and take a look.