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

Function toJSON

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

Source from the content-addressed store, hash-verified

67 return `BigDecimal(${format(this)})`
68 },
69 toJSON(this: BigDecimal) {
70 return {
71 _id: "BigDecimal",
72 value: String(this.value),
73 scale: this.scale
74 }
75 },
76 [NodeInspectSymbol](this: BigDecimal) {
77 return this.toJSON()
78 },

Callers

nothing calls this directly

Calls 1

StringInterface · 0.70

Tested by

no test coverage detected