MCPcopy Index your code
hub / github.com/Effect-TS/effect / mapInputPathFlat

Function mapInputPathFlat

packages/effect/src/internal/configProvider.ts:454–462  ·  view source on GitHub ↗
(
  self: ConfigProvider.ConfigProvider.Flat,
  f: (path: string) => string
)

Source from the content-addressed store, hash-verified

452>(2, (self, f) => fromFlat(mapInputPathFlat(self.flattened, f)))
453
454const mapInputPathFlat = (
455 self: ConfigProvider.ConfigProvider.Flat,
456 f: (path: string) => string
457): ConfigProvider.ConfigProvider.Flat =>
458 makeFlat({
459 load: (path, config, split = true) => self.load(path, config, split),
460 enumerateChildren: (path) => self.enumerateChildren(path),
461 patch: pathPatch.mapName(self.patch, f)
462 })
463
464/** @internal */
465export const nested = dual<

Callers 1

configProvider.tsFile · 0.85

Calls 3

makeFlatFunction · 0.85
enumerateChildrenMethod · 0.80
loadMethod · 0.65

Tested by

no test coverage detected