Skip to content

ts-patch can't do async #176

Description

@arthurwolf

Hello.

I'm trying to create a ts-patch transformer to transform some code before it's executed.

The problem is the tool I'm trying to call (like much of npm nowadays...) expects an async call.

So I start adding await before the call, and moving up in my code transforming functions to async as I go.

And I hit a wall when I get down to the level of ts-patch / the transformer itself... It expects sync functions, and won't do await / deal with any kind of async function.

Is there any way to get this to work? Some kind of solution I'm not considering?

Any help would be very much appreciated.

Thanks a lot in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions