Home / Function/ CodeGraphStatsToJSON() — typescript-sdk Function Reference

CodeGraphStatsToJSON() — typescript-sdk Function Reference

Architecture documentation for the CodeGraphStatsToJSON() function in CodeGraphStats.ts from the typescript-sdk codebase.

Entity Profile

Dependency Diagram

graph TD
  b95db458_8621_2d9c_5e98_7fbb9204fda8["CodeGraphStatsToJSON()"]
  186d4831_8762_a226_ba9c_56a473680dce["CodeGraphEnvelopeToJSON()"]
  186d4831_8762_a226_ba9c_56a473680dce -->|calls| b95db458_8621_2d9c_5e98_7fbb9204fda8
  style b95db458_8621_2d9c_5e98_7fbb9204fda8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/models/CodeGraphStats.ts lines 107–123

export function CodeGraphStatsToJSON(value?: CodeGraphStats | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'nodeCount': value['nodeCount'],
        'relationshipCount': value['relationshipCount'],
        'nodeTypes': value['nodeTypes'],
        'relationshipTypes': value['relationshipTypes'],
        'filesProcessed': value['filesProcessed'],
        'classes': value['classes'],
        'functions': value['functions'],
        'types': value['types'],
        'processingTimeMs': value['processingTimeMs'],
    };
}

Domain

Subdomains

Frequently Asked Questions

What does CodeGraphStatsToJSON() do?
CodeGraphStatsToJSON() is a function in the typescript-sdk codebase.
What calls CodeGraphStatsToJSON()?
CodeGraphStatsToJSON() is called by 1 function(s): CodeGraphEnvelopeToJSON.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free