Opt-in introspection about a folder's immediate children — a total count plus a per-type breakdown. Returned only when explicitly requested via includeChildInfo=true, because the underlying repository calculation is comparatively expensive. Counts are for immediate children only (never recursive/whole-subtree). For folder tree UIs, prefer optimistic lazy expansion (load children on demand) over requesting this for every node.

interface IChildInfo {
    childCount?: number;
    documentCount?: number;
    folderCount?: number;
    hasChildren?: boolean;
    shortcutCount?: number;
}

Implemented by

Properties

childCount?: number

Total number of immediate children across all entry types.

documentCount?: number

Number of immediate child documents.

folderCount?: number

Number of immediate child folders.

hasChildren?: boolean

Whether the folder has at least one immediate child of any type.

shortcutCount?: number

Number of immediate child shortcuts.