@docsvision/webclient
Version:
Type definitions for DocsVision WebClient scripts and extensions.
10 lines (9 loc) • 480 B
TypeScript
import { IDirectoryTreeRow } from "@docsvision/webclient/BackOffice/IDirectoryTreeRow";
export declare type FindSectionResult = {
row: IDirectoryTreeRow;
parentRow: IDirectoryTreeRow;
index: number;
path: IDirectoryTreeRow[];
};
export declare function findSection(sectionId: string, tree: IDirectoryTreeRow[]): FindSectionResult;
export declare function findSectionImpl(sectionId: string, tree: IDirectoryTreeRow[], path: IDirectoryTreeRow[]): FindSectionResult;