foo-webview-sdk
    Preparing search index...

    Interface LibraryEnumerateTreeOptions

    Root-aware tree-walk options for library.enumerateTree.

    interface LibraryEnumerateTreeOptions {
        includeFiles?: boolean;
        onProgress?: (
            info: {
                absolutePath: string;
                pathId: string;
                pending: number;
                rootId: string;
                visited: number;
            },
        ) => void;
        pathId?: string;
        rootId: string;
        signal?: AbortSignal;
        strategy?: "bfs"
        | "dfs";
    }
    Index
    includeFiles?: boolean

    Include direct files in each batch; defaults to false.

    onProgress?: (
        info: {
            absolutePath: string;
            pathId: string;
            pending: number;
            rootId: string;
            visited: number;
        },
    ) => void

    Per-batch progress callback.

    pathId?: string

    Starting pathId; defaults to "" (root node).

    rootId: string

    Required: library-root id (from getRoots().roots[].id).

    signal?: AbortSignal

    Abort signal that cancels the walk.

    strategy?: "bfs" | "dfs"

    Traversal strategy: 'bfs' (default) or 'dfs'.