MCPcopy
hub / github.com/Effect-TS/effect / fn

Function fn

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

Source from the content-addressed store, hash-verified

13444 return cache.get(prop)
13445 }
13446 const fn = (...args: Array<any>) =>
13447 core.andThen(target, (s: any) => {
13448 if (typeof s[prop] === "function") {
13449 cache.set(prop, (...args: Array<any>) => core.andThen(target, (s: any) => s[prop](...args)))
13450 return s[prop](...args)
13451 }
13452 cache.set(prop, core.andThen(target, (s: any) => s[prop]))
13453 return s[prop]
13454 })
13455 const cn = core.andThen(target, (s: any) => s[prop])
13456 // @effect-diagnostics-next-line floatingEffect:off
13457 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 4

defineLengthFunction · 0.85
fnApplyFunction · 0.85
setMethod · 0.65
contextMethod · 0.65

Tested by

no test coverage detected