Type Alias Callback<Node>

Callback<Node>: ((dirTree: Node, stat: Stats) => void)

Callback used by [[scan]] 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.