Functionutilsv0.7.0
async traverseDirectory(
dir: string,
callback: (
fullPath: string,
relativePath: string,
imported: Record<string, unknown>
) => Promise<void> | void,
logger: ILogger
): Promise<void>async traverseDirectory(
dir: string,
callback: (
fullPath: string,
relativePath: string,
imported: Record<string, unknown>
) => Promise<void> | void,
logger: ILogger
): Promise<void>dir
callback
A function that will be called for each imported module. It receives the full file path, the file's relative path, and the imported module as arguments.