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

Function sync

packages/@contentlayer/utils/src/effect/Effect.ts:46–46  ·  view source on GitHub ↗
(fn: () => A)

Source from the content-addressed store, hash-verified

44export const tryPromiseOrDie = <A>(promise: () => Promise<A>) => pipe(T.tryPromise(promise), T.orDie)
45
46export const sync = <A>(fn: () => A): T.Effect<unknown, never, A> => T.succeedWith(fn)
47
48export const eitherMap =
49 <A1, A2>(mapRight: (a1: A1) => A2) =>

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…