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

instanceOfCodeGraphEnvelopeGraph() — typescript-sdk Function Reference

Architecture documentation for the instanceOfCodeGraphEnvelopeGraph() function in CodeGraphEnvelopeGraph.ts from the typescript-sdk codebase.

Entity Profile

Relationship Graph

Source Code

src/models/CodeGraphEnvelopeGraph.ts lines 52–56

export function instanceOfCodeGraphEnvelopeGraph(value: object): value is CodeGraphEnvelopeGraph {
    if (!('nodes' in value) || value['nodes'] === undefined) return false;
    if (!('relationships' in value) || value['relationships'] === undefined) return false;
    return true;
}

Domain

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free