instanceOfCodeGraphRelationship() — typescript-sdk Function Reference
Architecture documentation for the instanceOfCodeGraphRelationship() function in CodeGraphRelationship.ts from the typescript-sdk codebase.
Entity Profile
Relationship Graph
Source Code
src/models/CodeGraphRelationship.ts lines 57–63
export function instanceOfCodeGraphRelationship(value: object): value is CodeGraphRelationship {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('type' in value) || value['type'] === undefined) return false;
if (!('startNode' in value) || value['startNode'] === undefined) return false;
if (!('endNode' in value) || value['endNode'] === undefined) return false;
return true;
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free