wdpr
    Preparing search index...

    Type Alias DepthItem<L, T>

    DepthItem:
        | { kind: "item"; value: T }
        | { children: DepthList<L, T>; kind: "list"; ltype: L }

    Represents a single node in a depth tree.

    A node is either a leaf item containing a value, or a nested list containing children. This recursive type allows arbitrarily deep nesting.

    Type Parameters

    • L

      The list type discriminator (e.g., "bullet" vs "number" for lists, or null when list type distinction is not needed)

    • T

      The type of leaf item values