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

Function mapError

packages/@contentlayer/utils/src/effect/These.ts:81–83  ·  view source on GitHub ↗
(f: (a: E0) => E)

Source from the content-addressed store, hash-verified

79}
80
81export function mapError<E0, E>(f: (a: E0) => E): <A>(self: These<E0, A>) => These<E, A> {
82 return (self) => mapError_(self, f)
83}
84
85export function chain_<E0, A0, E, A>(self: These<E0, A0>, f: (a: A0, w: O.Option<E0>) => These<E, A>) {
86 return foldM_(

Callers

nothing calls this directly

Calls 1

mapError_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…