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

instanceOfDomainRelationship() — typescript-sdk Function Reference

Architecture documentation for the instanceOfDomainRelationship() function in DomainRelationship.ts from the typescript-sdk codebase.

Entity Profile

Relationship Graph

Source Code

src/models/DomainRelationship.ts lines 57–63

export function instanceOfDomainRelationship(value: object): value is DomainRelationship {
    if (!('from' in value) || value['from'] === undefined) return false;
    if (!('to' in value) || value['to'] === undefined) return false;
    if (!('type' in value) || value['type'] === undefined) return false;
    if (!('strength' in value) || value['strength'] === 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