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

Function succeed

packages/@contentlayer/utils/src/effect/These.ts:17–19  ·  view source on GitHub ↗
(a: A)

Source from the content-addressed store, hash-verified

15}
16
17export function succeed<A>(a: A) {
18 return new These(E.right(Tp.tuple(a, O.none)))
19}
20
21export function warn<E, A>(a: A, e: E) {
22 return new These(E.right(Tp.tuple(a, O.some(e))))

Callers 2

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