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

Function makeImpl

packages/effect/src/Context.ts:492–506  ·  view source on GitHub ↗
(
  cacheRoot: ContextImpl<any> | undefined,
  base: ReadonlyMap<string, any>,
  overlay: Overlay | undefined,
  depth: number
)

Source from the content-addressed store, hash-verified

490const FlattenAfterBaseHits = 8
491
492const makeImpl = <Services>(
493 cacheRoot: ContextImpl<any> | undefined,
494 base: ReadonlyMap<string, any>,
495 overlay: Overlay | undefined,
496 depth: number
497): ContextImpl<Services> => {
498 const self: ContextImpl<Services> = Object.create(Proto)
499 self.cacheRoot = cacheRoot ?? self
500 self.base = base
501 self.overlay = overlay
502 self.depth = depth
503 self._flat = undefined
504 self.baseHits = 0
505 return self
506}
507
508const applyOverlays = (map: Map<string, any>, overlay: Overlay | undefined): void => {
509 if (!overlay) return

Callers 2

makeUnsafeFunction · 0.70
addUnsafeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected