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

Function makeProvider

packages/effect/src/ConfigProvider.ts:367–375  ·  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

365const identityPath = (path: Path): Path => path
366
367function makeProvider(
368 load: (path: Path) => Effect.Effect<Node | undefined, SourceError>,
369 mapInput: (f: (path: Path) => Path) => ConfigProvider
370): ConfigProvider {
371 const self = Object.create(Proto)
372 self.load = load
373 self.mapInput = mapInput
374 return self
375}
376
377function makeSource(
378 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