I am using EffectTS and for that reason am wrapping step.do to use it better with effect but dont re

I am using EffectTS and for that reason am wrapping step.do to use it better with effect but dont really see how that could be the issue:

export const stepEffect = <A, E>(
    step: { do: (name: string, fn: () => Promise<any>) => Promise<any> },
    stepName: string,
    effectFn: Effect.Effect<A, E, never>,
): Effect.Effect<A, E, never> => {
    return Effect.promise(() => executeRpcWithCleanup(() => step.do(stepName, async () => Effect.runPromise(effectFn))))
}
Was this page helpful?