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

Function fail

packages/@contentlayer/utils/src/effect/These.ts:29–31  ·  view source on GitHub ↗
(e: E)

Source from the content-addressed store, hash-verified

27}
28
29export function fail<E>(e: E) {
30 return new These<E, never>(E.left(e))
31}
32
33export const isNonFailure = <E, A>(self: These<E, A>): self is These<never, A> => E.isRight(self.either)
34

Callers 2

mapError_Function · 0.85
effectTheseFunction · 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…