UNPKG
@ted-marozzi/layout-elk
Version:
latest (0.1.5-pro.9)
0.1.5-pro.9
0.1.5-pro.8
0.1.5-pro.7
0.1.5-pro.6
0.1.5-pro.5
0.1.5-pro.4
0.1.5-pro.2
0.1.5-pro.1
ELK layout engine for mermaid
github.com/mermaid-js/mermaid
mermaid-js/mermaid
@ted-marozzi/layout-elk
/
dist
/
find-common-ancestor.d.ts
6 lines
(5 loc)
•
219 B
TypeScript
View Raw
1
2
3
4
5
6
export
interface
TreeData
{
parentById
:
Record
<
string
,
string
>;
childrenById
:
Record
<
string
,
string
[]>; }
export
declare
const
findCommonAncestor
:
(
id1
:
string
,
id2
:
string
, { parentById }:
TreeData
) =>
string
;