Type Alias CallbackAsync<Node>

CallbackAsync<Node>: ((dirTree: Node, stat: Stats) => void | Promise<void>)

Callback used by [[scanAsync]] when a file or dir is encountered. Note that it can extend the node that will be returned in the directory tree.

Type Parameters

  • Node extends Dree = Dree

    The type of the tree object, which can be extended and changed by the onFile and onDir functions.