Transforming Error Type in Effect.Effect

im having a brain fart here...i have a type of Effect.Effect<Option.Option<Session>, NoSuchElementException, SessionStore>, how can i have this return a type of Effect.Effect<Option.Option<Session>, never, SessionStore> where the error is mapped to a Option.none? I keep getting a return type of Effect.Effect<Option.Option<Session> | Option.Option<never>, NoSuchElementException, SessionStore>...
Was this page helpful?