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

Function toJSON

packages/effect/src/HashRing.ts:109–115  ·  view source on GitHub ↗
(this: HashRing<any>)

Source from the content-addressed store, hash-verified

107 return Iterable.map(this.nodes.values(), ([n]) => n)[Symbol.iterator]()
108 },
109 toJSON(this: HashRing<any>) {
110 return {
111 _id: "HashRing",
112 baseWeight: this.baseWeight,
113 nodes: this.ring.map(([, n]) => this.nodes.get(n)![0])
114 }
115 }
116}
117
118/**

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected