mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 17:59:39 +02:00

Add the appropriate type checks to ensure that we're only ever calling:
- `insertCluster()` with `ClusterNode`
- `insertNode()` with a `NonClusterNode`
Fixes: 7401cb8f6a