Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@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
currentFolder
string
fileName
string