Home / File/ EntryPoint.ts — typescript-sdk Source File

EntryPoint.ts — typescript-sdk Source File

Architecture documentation for EntryPoint.ts, a typescript file in the typescript-sdk codebase. 2 imports, 1 dependents.

File typescript CodeGraph IR 2 imports 1 dependents 4 functions

Entity Profile

Dependency Diagram

graph LR
  bd67aa96_da12_416a_c85c_15267cf0f1dd["EntryPoint.ts"]
  41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"]
  bd67aa96_da12_416a_c85c_15267cf0f1dd --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918
  11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"]
  bd67aa96_da12_416a_c85c_15267cf0f1dd --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c
  cf3c46e4_2683_0d9b_ec4b_2d29dfee4adf["DeadCodeAnalysisResponse.ts"]
  cf3c46e4_2683_0d9b_ec4b_2d29dfee4adf --> bd67aa96_da12_416a_c85c_15267cf0f1dd
  style bd67aa96_da12_416a_c85c_15267cf0f1dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/* tslint:disable */
/* eslint-disable */
/**
 * Supermodel
 * Code Graphing & Analysis API
 *
 * The version of the OpenAPI document: 0.9.3
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { mapValues } from '../runtime';
/**
 * A detected entry point that should not be flagged as dead code.
 * @export
 * @interface EntryPoint
 */
export interface EntryPoint {
    /**
     * File path relative to repository root.
     * @type {string}
     * @memberof EntryPoint
     */
    file: string;
    /**
     * Name of the entry point.
     * @type {string}
     * @memberof EntryPoint
     */
    name: string;
    /**
     * Line number where the entry point is declared.
     * @type {number}
     * @memberof EntryPoint
     */
    line: number;
    /**
     * Type of code element.
     * @type {string}
     * @memberof EntryPoint
     */
    type: EntryPointTypeEnum;
    /**
     * Reason this is considered an entry point (e.g., 'Module export', 'Route handler', 'Main function').
     * @type {string}
     * @memberof EntryPoint
     */
    reason: string;
}


/**
 * @export
 */
export const EntryPointTypeEnum = {
    Function: 'function',
    Class: 'class',
    Method: 'method',
    Interface: 'interface',
    Type: 'type',
    Variable: 'variable',
    Constant: 'constant'
} as const;
export type EntryPointTypeEnum = typeof EntryPointTypeEnum[keyof typeof EntryPointTypeEnum];


/**
 * Check if a given object implements the EntryPoint interface.
 */
export function instanceOfEntryPoint(value: object): value is EntryPoint {
    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 (!('reason' in value) || value['reason'] === undefined) return false;
    return true;
}

export function EntryPointFromJSON(json: any): EntryPoint {
    return EntryPointFromJSONTyped(json, false);
}

export function EntryPointFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntryPoint {
    if (json == null) {
        return json;
    }
    return {
        
        'file': json['file'],
        'name': json['name'],
        'line': json['line'],
        'type': json['type'],
        'reason': json['reason'],
    };
}

export function EntryPointToJSON(value?: EntryPoint | null): any {
    if (value == null) {
        return value;
    }
    return {
        
        'file': value['file'],
        'name': value['name'],
        'line': value['line'],
        'type': value['type'],
        'reason': value['reason'],
    };
}

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does EntryPoint.ts do?
EntryPoint.ts is a source file in the typescript-sdk codebase, written in typescript. It belongs to the CodeGraph domain, IR subdomain.
What functions are defined in EntryPoint.ts?
EntryPoint.ts defines 4 function(s): EntryPointFromJSON, EntryPointFromJSONTyped, EntryPointToJSON, instanceOfEntryPoint.
What does EntryPoint.ts depend on?
EntryPoint.ts imports 2 module(s): mapValues, runtime.ts.
What files import EntryPoint.ts?
EntryPoint.ts is imported by 1 file(s): DeadCodeAnalysisResponse.ts.
Where is EntryPoint.ts in the architecture?
EntryPoint.ts is located at src/models/EntryPoint.ts (domain: CodeGraph, subdomain: IR, directory: src/models).

Analyze Your Own Codebase

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

Try Supermodel Free