@ng-doc/builder / Function

findClosestFile

Finds the closest file in the given path.

Presentation

function findClosestFile(
  tree: Tree,
  currentFolder: string,
  fileName: string,
): string | null;

Returns

string | null -

{string} The path to the closest file.

Parameters

NameTypeDescription
tree
Tree

@param tree

currentFolder
string

@param {string} currentFolder The current folder to search in.

fileName
string

@param {string} fileName The file name to search for.