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

instanceOfDeadCodeCandidate() — typescript-sdk Function Reference

Architecture documentation for the instanceOfDeadCodeCandidate() function in DeadCodeCandidate.ts from the typescript-sdk codebase.

Entity Profile

Relationship Graph

Source Code

src/models/DeadCodeCandidate.ts lines 89–97

export function instanceOfDeadCodeCandidate(value: object): value is DeadCodeCandidate {
    if (!('file' in value) || value['file'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('line' in value) || value['line'] === undefined) return false;
    if (!('type' in value) || value['type'] === undefined) return false;
    if (!('confidence' in value) || value['confidence'] === undefined) return false;
    if (!('reason' in value) || value['reason'] === 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