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

Function toJSON

packages/effect/src/TxPubSub.ts:67–73  ·  view source on GitHub ↗
(this: TxPubSub<unknown>)

Source from the content-addressed store, hash-verified

65 return toJson(this)
66 },
67 toJSON(this: TxPubSub<unknown>) {
68 return {
69 _id: "TxPubSub",
70 strategy: this.strategy,
71 capacity: this.capacity
72 }
73 },
74 toString(this: TxPubSub<unknown>) {
75 return `TxPubSub(${this.strategy}, ${this.capacity})`
76 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected