mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +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;
 |