mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-06 07:39:48 +02: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;
|