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

Function toJSON

packages/effect/src/Graph.ts:399–406  ·  view source on GitHub ↗
(this: GraphImpl<any, any>)

Source from the content-addressed store, hash-verified

397 return hash
398 },
399 toJSON(this: GraphImpl<any, any>) {
400 return {
401 _id: "Graph",
402 nodeCount: this.nodes.size,
403 edgeCount: this.edges.size,
404 type: this.type
405 }
406 },
407 toString(this: GraphImpl<any, any>) {
408 return `Graph(${this.type}, ${this.nodes.size}, ${this.edges.size})`
409 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected