Documentation
    Preparing search index...

    Interface LayeredNode

    The slice of Node applyLayers walks: a mask and children.

    Structural rather than import type { Node }, for the reason authority.ts gives: node.ts imports this module at runtime (for DEFAULT_LAYER_MASK), so naming the class here — even type-only — would close an import cycle between the two files. Every Node satisfies this shape.

    interface LayeredNode {
        children: readonly LayeredNode[];
        layers: number;
    }
    Index
    children: readonly LayeredNode[]

    Node.children — walked depth-first, in insertion order (§6).

    layers: number

    Node.layers — the §46 mask to overwrite.