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

Function result

packages/@contentlayer/utils/src/effect/These.ts:98–100  ·  view source on GitHub ↗
(self: These<E, A>)

Source from the content-addressed store, hash-verified

96}
97
98export function result<E, A>(self: These<E, A>): E.Either<E, Tp.Tuple<[A, O.Option<E>]>> {
99 return self.either
100}
101
102export const errorOrWaning = <E, A>(self: These<E, A>): O.Option<E> => {
103 return E.fold_(self.either, O.some, (tp) => tp.get(1))

Callers 2

toEffectFunction · 0.85
effectTapSuccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…