Weird Type Inference with effect.gen

Hi, when I use effect.gen I get really weird type inference for the resulting effect. Like this
 Effect<void, Effect | {catchAll: {<E, A2, E2, R2>(f: (e: E) => Effect<A2, E2, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A2 | A, E2, R2 | R>, <A, E, R, A2, E2, R2>(self: Effect<A, E, R>, f: (e: E) => Effect<A2, E2, R2>): Effect<A2 | A, E2, R2 | R>}, onExit: {<A, E, X, R2>(cleanup: (exit: Exit.Exit<A, E>) => Effect<X, never, R2>): <R>(self: Effect<A, E, R>) => Effect<A, E, R2 | R>, <A, E, R, X, R2>(self: Effect<A, E, R>, cleanup: (exit: Exit.Exit<A, E>) => Effect<X, never, R2>): Effect<A, E, R | R2>}, serviceFunction: <T extends Effect<any, any, any>, Args extends Array<any>, A>(getService: T, f: (_: Effect.Success<T>) => (...args: Args) => A) => (...args: Args) => Effect<A, Effect.Error<T>, Effect.Context<T>>, takeWhile: {<A, E, R>(predicate: (a: NoInfer<A>, i: number) => Effect<boolean, E, R>): (elements: Iterable<A>) => Effect<Array<A>, E, R>, <A, E, R>(elements: Iterable<A>, predicate: (a: NoInfer<A>, i: number) => Effect<boolean, E, R>): Effect<Array<A>, E, R>}, Repeat: Repeat, linkSpans: {(span: Tracer.AnySpan, attributes?: Record<string, any>): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>, <A, E, R>(self: Effect<A, E, R>, span: Tracer.AnySpan, attributes?: Record<string, any>): Effect<A, E, R>}, fromFiber: <A, E>(fiber: F...
Was this page helpful?