UNPKG

mp-lens

Version:

微信小程序分析工具 (Unused Code, Dependencies, Visualization)

10 lines (9 loc) 485 B
/** * Loads tsconfig.json, parses the types array (root level first, then compilerOptions.types), * and returns a list of absolute paths for project-local type definition files/directories. * It filters out module names (like "miniprogram-api-typings"). * * @param projectRoot The absolute path to the project root. * @returns An array of absolute paths to essential type files derived from tsconfig. */ export declare function loadTsConfigTypes(projectRoot: string): string[];