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

Dependency Diagram

graph TD
  038fd749_7c50_733d_f168_c5bb08d59bc0["instanceOfSupermodelIRGraph()"]
  16665b9d_716b_53d2_ad0f_8f224211e5bc["SupermodelIRGraph.ts"]
  038fd749_7c50_733d_f168_c5bb08d59bc0 -->|defined in| 16665b9d_716b_53d2_ad0f_8f224211e5bc
  style 038fd749_7c50_733d_f168_c5bb08d59bc0 fill:#6366f1,stroke:#818cf8,color:#fff

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

Frequently Asked Questions

What does instanceOfSupermodelIRGraph() do?
instanceOfSupermodelIRGraph() is a function in the typescript-sdk codebase, defined in src/models/SupermodelIRGraph.ts.
Where is instanceOfSupermodelIRGraph() defined?
instanceOfSupermodelIRGraph() is defined in src/models/SupermodelIRGraph.ts at line 52.

Analyze Your Own Codebase

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

Try Supermodel Free