@ng-doc/builder
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
10 lines (9 loc) • 405 B
TypeScript
import { Tree } from '@angular-devkit/schematics';
/**
* Finds the closest file in the given path.
* @param tree
* @param {string} currentFolder The current folder to search in.
* @param {string} fileName The file name to search for.
* @returns {string} The path to the closest file.
*/
export declare function findClosestFile(tree: Tree, currentFolder: string, fileName: string): string | null;