mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-12-03 19:17:00 +01:00
10 lines
223 B
TypeScript
10 lines
223 B
TypeScript
export interface TreeData {
|
|
parentById: Record<string, string>;
|
|
childrenById: Record<string, string[]>;
|
|
}
|
|
export declare const findCommonAncestor: (
|
|
id1: string,
|
|
id2: string,
|
|
{ parentById }: TreeData
|
|
) => string;
|