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

Function fn

packages/effect/src/Effect.ts:13452–13460  ·  view source on GitHub ↗
(...args: Array<any>)

Source from the content-addressed store, hash-verified

13450 return cache.get(prop)
13451 }
13452 const fn = (...args: Array<any>) =>
13453 core.andThen(target, (s: any) => {
13454 if (typeof s[prop] === "function") {
13455 cache.set(prop, (...args: Array<any>) => core.andThen(target, (s: any) => s[prop](...args)))
13456 return s[prop](...args)
13457 }
13458 cache.set(prop, core.andThen(target, (s: any) => s[prop]))
13459 return s[prop]
13460 })
13461 const cn = core.andThen(target, (s: any) => s[prop])
13462 // @effect-diagnostics-next-line floatingEffect:off
13463 Object.assign(fn, cn)

Callers 6

Tuple.tsFile · 0.70
asHttpEffectFunction · 0.50
effectify.tsFile · 0.50
RpcClient.tsFile · 0.50
fn.test.tsFile · 0.50

Calls 6

defineLengthFunction · 0.85
fnApplyFunction · 0.85
setMethod · 0.65
contextMethod · 0.65
getStackTraceLimitFunction · 0.50
setStackTraceLimitFunction · 0.50

Tested by

no test coverage detected