mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 13:59:54 +02:00
refactor: use more standard types
See: https://github.com/mermaid-js/mermaid/pull/5974#discussion_r1806473749 See: https://github.com/mermaid-js/mermaid/pull/5974#discussion_r1808511738 Co-authored-by: saurabhg772244 <saurabh@mermaidchart.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import ELK from 'elkjs/lib/elk.bundled.js';
|
||||
import type { InternalHelpers, LayoutData, RenderOptions, SVG, SVGGroup } from 'mermaid';
|
||||
import { type TreeData, findCommonAncestor } from './find-common-ancestor.js';
|
||||
|
||||
type Node = LayoutData['nodes'][0];
|
||||
type Node = LayoutData['nodes'][number];
|
||||
|
||||
interface NodeWithVertex extends Omit<Node, 'domId'> {
|
||||
children?: unknown[];
|
||||
|
Reference in New Issue
Block a user