Type alias Callback<Node>

Callback<Node>: ((dirTree, stat) => 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.

Type declaration

    • (dirTree, stat): void
    • Parameters

      • dirTree: Node
      • stat: Stats

      Returns void

Generated using TypeDoc