UNPKG
@mermaid-js/layout-elk
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
ELK layout engine for mermaid
github.com/mermaid-js/mermaid
mermaid-js/mermaid
@mermaid-js/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
;