@supuwoerc/toolkit
    Preparing search index...

    Interface TreeNode

    树节点接口(通用) — Tree node interface (generic)

    表示树结构中的单个节点,至少包含 id 字段,可选 pid(父 id), 并允许任意其它键/值对以便扩展。

    Represents a single node in a tree structure. It contains at least an id, optionally a pid (parent id), and allows arbitrary additional properties.

    interface TreeNode {
        id: string | number | symbol;
        pid?: string | number | symbol;
        [key: string | number | symbol]: any;
    }

    Indexable

    • [key: string | number | symbol]: any
    Index

    Properties

    Properties

    id: string | number | symbol
    pid?: string | number | symbol