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

Function get

packages/effect/src/internal/layer.ts:693–703  ·  view source on GitHub ↗
(target, prop, _receiver)

Source from the content-addressed store, hash-verified

691 tag,
692 new Proxy({ ...service as object } as S, {
693 get(target, prop, _receiver) {
694 if (prop in target) {
695 return target[prop as keyof S]
696 }
697 const prevLimit = getStackTraceLimit()
698 setStackTraceLimit(2)
699 const error = new Error(`${tag.key}: Unimplemented method "${prop.toString()}"`)
700 setStackTraceLimit(prevLimit)
701 error.name = "UnimplementedError"
702 return makeUnimplemented(error)
703 },
704 has: constTrue
705 })
706 )

Callers

nothing calls this directly

Calls 4

makeUnimplementedFunction · 0.85
getStackTraceLimitFunction · 0.70
setStackTraceLimitFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected