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

Function warnOption

packages/@contentlayer/utils/src/effect/These.ts:25–27  ·  view source on GitHub ↗
(a: A, e: O.Option<E>)

Source from the content-addressed store, hash-verified

23}
24
25export function warnOption<E, A>(a: A, e: O.Option<E>) {
26 return new These(E.right(Tp.tuple(a, e)))
27}
28
29export function fail<E>(e: E) {
30 return new These<E, never>(E.left(e))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…