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

Function appendConfigPath

packages/effect/src/internal/configProvider.ts:226–237  ·  view source on GitHub ↗
(path: ReadonlyArray<string>, config: Config.Config<unknown>)

Source from the content-addressed store, hash-verified

224}
225
226const appendConfigPath = (path: ReadonlyArray<string>, config: Config.Config<unknown>): ReadonlyArray<string> => {
227 let op = config as _config.ConfigPrimitive
228 if (op._tag === "Nested") {
229 const out = path.slice()
230 while (op._tag === "Nested") {
231 out.push(op.name)
232 op = op.config as _config.ConfigPrimitive
233 }
234 return out
235 }
236 return path
237}
238
239const fromFlatLoop = <A>(
240 flat: ConfigProvider.ConfigProvider.Flat,

Callers 1

fromFlatLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected