MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeProvider

Function makeProvider

packages/effect/src/ConfigProvider.ts:357–365  ·  view source on GitHub ↗
(
  load: (path: Path) => Effect.Effect<Node | undefined, SourceError>,
  mapInput: (f: (path: Path) => Path) => ConfigProvider
)

Source from the content-addressed store, hash-verified

355const identityPath = (path: Path): Path => path
356
357function makeProvider(
358 load: (path: Path) => Effect.Effect<Node | undefined, SourceError>,
359 mapInput: (f: (path: Path) => Path) => ConfigProvider
360): ConfigProvider {
361 const self = Object.create(Proto)
362 self.load = load
363 self.mapInput = mapInput
364 return self
365}
366
367function makeSource(
368 get: (path: Path) => Effect.Effect<Node | undefined, SourceError>,

Callers 2

makeSourceFunction · 0.85
makeOrElseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected