declare const subprogram = Effect<void, FooError | BarError | BazError>
const program: Effect<void, ProgramError> = subprogram.pipe(
Effect.catchTags({
FooError: () => Effect.fail(new ProgramError())
}),
Effect.orDie
)
declare const subprogram = Effect<void, FooError | BarError | BazError>
const program: Effect<void, ProgramError> = subprogram.pipe(
Effect.catchTags({
FooError: () => Effect.fail(new ProgramError())
}),
Effect.orDie
)