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

Function toJSON

packages/effect/src/BigDecimal.ts:77–83  ·  view source on GitHub ↗
(this: BigDecimal)

Source from the content-addressed store, hash-verified

75 return `BigDecimal(${format(this)})`
76 },
77 toJSON(this: BigDecimal) {
78 return {
79 _id: "BigDecimal",
80 value: String(this.value),
81 scale: this.scale
82 }
83 },
84 [NodeInspectSymbol](this: BigDecimal) {
85 return this.toJSON()
86 },

Callers

nothing calls this directly

Calls 1

StringFunction · 0.70

Tested by

no test coverage detected