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

Function toJSON

packages/effect/src/Chunk.ts:184–189  ·  view source on GitHub ↗
(this: Chunk<A>)

Source from the content-addressed store, hash-verified

182 return `Chunk(${format(toReadonlyArray(this))})`
183 },
184 toJSON<A>(this: Chunk<A>) {
185 return {
186 _id: "Chunk",
187 values: toJson(toReadonlyArray(this))
188 }
189 },
190 [NodeInspectSymbol]<A>(this: Chunk<A>) {
191 return this.toJSON()
192 },

Callers

nothing calls this directly

Calls 1

toJsonFunction · 0.90

Tested by

no test coverage detected