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

instanceOfSupermodelIR() — typescript-sdk Function Reference

Architecture documentation for the instanceOfSupermodelIR() function in SupermodelIR.ts from the typescript-sdk codebase.

Entity Profile

Dependency Diagram

graph TD
  fdfc67e0_c18f_82b5_f88f_a9925d025501["instanceOfSupermodelIR()"]
  8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3["SupermodelIR.ts"]
  fdfc67e0_c18f_82b5_f88f_a9925d025501 -->|defined in| 8ffa46c4_6e6e_a02b_f3e7_7fe17cc2b8d3
  style fdfc67e0_c18f_82b5_f88f_a9925d025501 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/models/SupermodelIR.ts lines 118–128

export function instanceOfSupermodelIR(value: object): value is SupermodelIR {
    if (!('repo' in value) || value['repo'] === undefined) return false;
    if (!('version' in value) || value['version'] === undefined) return false;
    if (!('schemaVersion' in value) || value['schemaVersion'] === undefined) return false;
    if (!('generatedAt' in value) || value['generatedAt'] === undefined) return false;
    if (!('stats' in value) || value['stats'] === undefined) return false;
    if (!('metadata' in value) || value['metadata'] === undefined) return false;
    if (!('domains' in value) || value['domains'] === undefined) return false;
    if (!('graph' in value) || value['graph'] === undefined) return false;
    return true;
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free