UNPKG

arky-js

Version:

**Arky.js** is a powerful, annotation-based framework for building serverless applications on **AWS Lambda and API Gateway**. Inspired by Angular and NestJS, Arky.js simplifies serverless development by providing decorators for defining modules, controlle

34 lines (33 loc) 1.17 kB
import { ClassDeclaration } from "ts-morph"; export declare class DependencyTreeWalker { private project; constructor(); /** * Recursively parses the dependencies of a class and builds a dependency map. * @param cls The class declaration to parse. * @returns A Map<string, string[]> where the key is the fully qualified class name and the value is an array of dependency names. */ buildDependencyMap(cls: ClassDeclaration): Map<string, string[]>; /** * Recursively parses the dependencies of a class. * @param cls The class declaration to parse. */ private parseDependencies; /** * Gets the fully qualified name of a class. * @param cls The class declaration. * @returns The fully qualified name (e.g., "module/path:ClassName"). */ private getFullyQualifiedName; /** * Gets the name of a type. * @param type The type to get the name for. * @returns The name of the type. */ private getTypeName; /** * Adds a source file to the project. * @param filePath The path to the source file. */ addSourceFile(filePath: string): void; }