MCPcopy Create free account
hub / github.com/effect-app/libs / makeOrElse

Function makeOrElse

repos/effect/packages/effect/src/ConfigProvider.ts:348–359  ·  view source on GitHub ↗
(first: ConfigProvider, second: ConfigProvider)

Source from the content-addressed store, hash-verified

346const Proto = {
347 ...PipeInspectableProto,
348 toJSON(this: ConfigProvider) {
349 return {
350 _id: "ConfigProvider"
351 }
352 }
353}
354
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

Callers 1

ConfigProvider.tsFile · 0.85

Calls 2

makeProviderFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…