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

Function readFileJson

packages/@contentlayer/utils/src/fs_.ts:41–44  ·  view source on GitHub ↗
(
  filePath: string,
)

Source from the content-addressed store, hash-verified

39
40// NOTE the following functions can't be easily lifted
41export const readFileJson = <T extends JsonValue = JsonValue>(
42 filePath: string,
43): T.Effect<OT.HasTracer & HasFs, ReadFileError | FileNotFoundError | JsonParseError, T> =>
44 T.accessServiceM(FsTag)((_) => _.readFileJson<T>(filePath))
45
46export const readFileJsonIfExists = <T extends JsonValue = JsonValue>(
47 filePath: string,

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…