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

Method toJSON

packages/effect/src/internal/core.ts:154–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 return pipeArguments(this, arguments)
153 }
154 toJSON(): unknown {
155 return {
156 _id: "Cause",
157 failures: this.reasons.map((f) => f.toJSON())
158 }
159 }
160 toString() {
161 return `Cause(${format(this.reasons)})`
162 }

Callers 1

[NodeInspectSymbol]Method · 0.95

Calls 2

toJSONMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected