Merging Either Types in TypeScript's Effect Library

Beginner Question: How do I merge the Either types here? Or are they meant to be seperate? How should I think about working this?

import { Effect, Either } from "effect";

const program = Effect.gen(function* () {
    const a = 5;

    if (a < 5) {
        return Either.right(true);
    } else {
        return Either.left(false);
    }
});
/*
const program: Effect.Effect<Either.Either<boolean, never> | Either.Either<never, boolean>, never, never>
*/
Was this page helpful?