UNPKG

takin

Version:

Front end engineering base toolchain and scaffold

20 lines (19 loc) 574 B
export interface ILookUpFileOptions { /** * 是否只返回路径, 默认为 false */ pathOnly?: boolean; /** * 查找深度,默认为 1, 如果为 0 则不查找 */ depth?: number; } /** * 查找文件 * @param dirs - 目录地址 * @param files - 文件名 * @param extnames - 后缀名 * @param options - 查找选项 * @returns `undefined` 或 文件路径 或 文件内容 */ export declare function lookupFile(dirs: string | string[], files: string[], extnames: string[], options?: ILookUpFileOptions): string | undefined;