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

Function getter

packages/effect/src/ui/Query.ts:2330–2330  ·  view source on GitHub ↗
(proto: object, key: PropertyKey)

Source from the content-addressed store, hash-verified

2328// throw on an object without the slot, a `Proxy` included.
2329type Intrinsic = (this: unknown, ...args: Array<any>) => any
2330const getter = (proto: object, key: PropertyKey): Intrinsic => Object.getOwnPropertyDescriptor(proto, key)!.get!
2331const hasSlot = (intrinsic: Intrinsic, u: object): boolean => {
2332 try {
2333 intrinsic.call(u)

Callers 1

Query.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected