AliveCodeItem.ts — typescript-sdk Source File
Architecture documentation for AliveCodeItem.ts, a typescript file in the typescript-sdk codebase. 2 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 1be1f54c_bd56_edbf_51b9_61fd2c078660["AliveCodeItem.ts"] 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918["runtime.ts"] 1be1f54c_bd56_edbf_51b9_61fd2c078660 --> 41b6b5c2_aa5b_90b9_c373_84e0a8cd9918 11568abc_c5bd_8b5d_1ce1_6d595e449b9c["mapValues"] 1be1f54c_bd56_edbf_51b9_61fd2c078660 --> 11568abc_c5bd_8b5d_1ce1_6d595e449b9c cf3c46e4_2683_0d9b_ec4b_2d29dfee4adf["DeadCodeAnalysisResponse.ts"] cf3c46e4_2683_0d9b_ec4b_2d29dfee4adf --> 1be1f54c_bd56_edbf_51b9_61fd2c078660 style 1be1f54c_bd56_edbf_51b9_61fd2c078660 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 code element with active callers or references.
* @export
* @interface AliveCodeItem
*/
export interface AliveCodeItem {
/**
* File path relative to repository root.
* @type {string}
* @memberof AliveCodeItem
*/
file: string;
/**
* Name of the function, class, or method.
* @type {string}
* @memberof AliveCodeItem
*/
name: string;
/**
* Line number where the declaration starts.
* @type {number}
* @memberof AliveCodeItem
*/
line: number;
/**
* Type of code element.
* @type {string}
* @memberof AliveCodeItem
*/
type: AliveCodeItemTypeEnum;
/**
* Number of unique callers or references.
* @type {number}
* @memberof AliveCodeItem
*/
callerCount: number;
}
/**
* @export
*/
export const AliveCodeItemTypeEnum = {
Function: 'function',
Class: 'class',
Method: 'method',
Interface: 'interface',
Type: 'type',
Variable: 'variable',
Constant: 'constant'
} as const;
export type AliveCodeItemTypeEnum = typeof AliveCodeItemTypeEnum[keyof typeof AliveCodeItemTypeEnum];
/**
* Check if a given object implements the AliveCodeItem interface.
*/
export function instanceOfAliveCodeItem(value: object): value is AliveCodeItem {
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 (!('callerCount' in value) || value['callerCount'] === undefined) return false;
return true;
}
export function AliveCodeItemFromJSON(json: any): AliveCodeItem {
return AliveCodeItemFromJSONTyped(json, false);
}
export function AliveCodeItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AliveCodeItem {
if (json == null) {
return json;
}
return {
'file': json['file'],
'name': json['name'],
'line': json['line'],
'type': json['type'],
'callerCount': json['callerCount'],
};
}
export function AliveCodeItemToJSON(value?: AliveCodeItem | null): any {
if (value == null) {
return value;
}
return {
'file': value['file'],
'name': value['name'],
'line': value['line'],
'type': value['type'],
'callerCount': value['callerCount'],
};
}
Domain
Subdomains
Functions
Dependencies
Imported By
Source
Frequently Asked Questions
What does AliveCodeItem.ts do?
AliveCodeItem.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 AliveCodeItem.ts?
AliveCodeItem.ts defines 4 function(s): AliveCodeItemFromJSON, AliveCodeItemFromJSONTyped, AliveCodeItemToJSON, instanceOfAliveCodeItem.
What does AliveCodeItem.ts depend on?
AliveCodeItem.ts imports 2 module(s): mapValues, runtime.ts.
What files import AliveCodeItem.ts?
AliveCodeItem.ts is imported by 1 file(s): DeadCodeAnalysisResponse.ts.
Where is AliveCodeItem.ts in the architecture?
AliveCodeItem.ts is located at src/models/AliveCodeItem.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