Type Alias CollapseGlobalValuesType<ParentPage, GlobalValuesType, RecursionDepth>

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

Collapses all element-book global values into a single flag object.

Type Parameters