Type Alias CollapseControlsInit<ParentPage, CurrentControlsInit, RecursionDepth>

CollapseControlsInit: CurrentControlsInit & (
    RecursionDepth extends [any, ...(infer RemainingDepth)]
        ? ParentPage extends BookPage<
            infer GlobalValuesType,
            infer GrandParentPage,
            infer ParentControls,
        >
            ? CollapseControlsInit<
                GrandParentPage,
                ParentControls,
                RemainingDepth,
            >
            : EmptyObject
        : EmptyObject
)

Collapses all element-book control inits into a single flag object.

Type Parameters