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

Method toJSON

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

Source from the content-addressed store, hash-verified

255 return `Fail(${format(this.error)})`
256 }
257 toJSON(): unknown {
258 return {
259 _tag: "Fail",
260 error: this.error
261 }
262 }
263 [Equal.symbol](that: any): boolean {
264 return (
265 isFailReason(that) &&

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected