UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

6 lines (5 loc) • 307 B
/** * True when `parentId` is `childId` itself or one of its descendants, so making `parentId` * the parent of `childId` would close a containment cycle. */ export declare const wouldCreateContainmentCycle: (childId: string, parentId: string, getParentId: (id: string) => string | undefined) => boolean;