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

instanceOfSupermodelIRGraph() — typescript-sdk Function Reference

Architecture documentation for the instanceOfSupermodelIRGraph() function in SupermodelIRGraph.ts from the typescript-sdk codebase.

Entity Profile

Relationship Graph

Source Code

src/models/SupermodelIRGraph.ts lines 52–56

export function instanceOfSupermodelIRGraph(value: object): value is SupermodelIRGraph {
    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