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

Function defineLength

packages/effect/src/Effect.ts:14687–14692  ·  view source on GitHub ↗
(length: number, fn: F)

Source from the content-addressed store, hash-verified

14685 }
14686
14687function defineLength<F extends Function>(length: number, fn: F) {
14688 return Object.defineProperty(fn, "length", {
14689 value: length,
14690 configurable: true
14691 })
14692}
14693
14694function fnApply(options: {
14695 readonly self: any

Callers 1

fnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected