Documentation
    Preparing search index...

    Interface NodeEventMap

    Events every node emits.

    Deliberately minimal — this packet owns only the structural pair. The map is an interface precisely so it is a widening point: later packets add their keys here (or, for out-of-package events, by declaration merging), and every Node subclass inherits the widened map because plan D1 fixes the base class as EventEmitter<NodeEventMap> with no generic parameter of its own. A subclass that needs private event types therefore adds them to this map rather than re-parameterizing the emitter.

    interface NodeEventMap {
        added: NodeHierarchyEvent;
        removed: NodeHierarchyEvent;
    }
    Index

    Fired on a node after it has been attached to a new parent.

    Fired on a node after it has been detached from its parent.