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

Function shiftTreeIndexes

packages/effect/src/unstable/cli/internal/config.ts:205–211  ·  view source on GitHub ↗
(tree: ConfigInternal.Tree, offset: number)

Source from the content-addressed store, hash-verified

203}
204
205const shiftTreeIndexes = (tree: ConfigInternal.Tree, offset: number): ConfigInternal.Tree => {
206 const output: ConfigInternal.Tree = Object.create(null)
207 for (const key of Object.keys(tree)) {
208 output[key] = shiftNodeIndexes(tree[key], offset)
209 }
210 return output
211}
212
213/** @internal */
214export const mergeConfig = (

Callers 2

shiftNodeIndexesFunction · 0.85
mergeConfigFunction · 0.85

Calls 1

shiftNodeIndexesFunction · 0.85

Tested by

no test coverage detected