MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / eitherMap

Function eitherMap

packages/@contentlayer/utils/src/effect/Effect.ts:49–51  ·  view source on GitHub ↗
(mapRight: (a1: A1) => A2)

Source from the content-addressed store, hash-verified

47
48export const eitherMap =
49 <A1, A2>(mapRight: (a1: A1) => A2) =>
50 <R, E1, EE1>(effect: T.Effect<R, E1, E.Either<EE1, A1>>, __trace?: string): T.Effect<R, E1, E.Either<EE1, A2>> =>
51 T.map_(effect, E.map(mapRight))
52
53export const chainMergeObject =
54 <T2, E2, A1 extends {}, A2 extends {}>(effect: (a1: A1) => T.Effect<T2, E2, A2>) =>

Callers

nothing calls this directly

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…