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

Function toJSON

packages/effect/src/internal/result.ts:41–47  ·  view source on GitHub ↗
(this: Result.Success<A, E>)

Source from the content-addressed store, hash-verified

39 return `success(${format(this.success)})`
40 },
41 toJSON<A, E>(this: Result.Success<A, E>) {
42 return {
43 _id: "Result",
44 _tag: this._tag,
45 value: toJson(this.success)
46 }
47 }
48})
49
50const FailureProto = Object.assign(Object.create(CommonProto), {

Callers

nothing calls this directly

Calls 1

toJsonFunction · 0.90

Tested by

no test coverage detected