UNPKG

auto-cr-cmd

Version:

Fast automated code review CLI powered by SWC-based static analysis

13 lines (12 loc) 474 B
export declare const readFile: (path: string) => string; /** * 递归获取目录下所有 TypeScript 和 JavaScript 文件 */ export declare function getAllFiles(dirPath: string, arrayOfFiles?: string[], extensions?: string[], options?: { skipNodeModules?: boolean; shouldIgnore?: (fullPath: string, isDirectory: boolean) => boolean; }): string[]; /** * 检查文件或目录是否存在 */ export declare function checkPathExists(targetPath: string): boolean;