subtree-hooks
    Preparing search index...

    Interface NodeData<CustomNode>

    interface NodeData<CustomNode extends Node> {
        dirNode?: CustomNode;
        dirpath: string;
        file: string;
        node: CustomNode;
        path: string;
    }

    Type Parameters

    • CustomNode extends Node

    Hierarchy (View Summary)

    Index

    Properties

    dirNode?: CustomNode

    The parent directory node in the subtree. Available during onSubTree hook.

    dirpath: string

    The absolute path of the directory containing this file. Available in all hooks.

    file: string

    The name of the file or directory (without path).

    The current node in the subtree associated with this file. Available during onDirStats and onFileStats hooks.

    path: string

    The absolute path to this file or directory.