Home / Type/ DomainRelationship Type — typescript-sdk Architecture

DomainRelationship Type — typescript-sdk Architecture

Architecture documentation for the DomainRelationship type/interface in DomainRelationship.ts from the typescript-sdk codebase.

Entity Profile

Source Code

src/models/DomainRelationship.ts lines 21–52

export interface DomainRelationship {
    /**
     * Source domain or subdomain name/id
     * @type {string}
     * @memberof DomainRelationship
     */
    from: string;
    /**
     * Target domain or subdomain name/id
     * @type {string}
     * @memberof DomainRelationship
     */
    to: string;
    /**
     * Relationship type (e.g., aggregates, dependsOn, relatesTo)
     * @type {string}
     * @memberof DomainRelationship
     */
    type: string;
    /**
     * Numeric strength/weight (0-1 or small integer)
     * @type {number}
     * @memberof DomainRelationship
     */
    strength: number;
    /**
     * Optional explanation for the relationship
     * @type {string}
     * @memberof DomainRelationship
     */
    reason?: string;
}

Analyze Your Own Codebase

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

Try Supermodel Free