(items: ClusterItems)
| 31 | } |
| 32 | |
| 33 | export function checkClusterItems(items: ClusterItems): void { |
| 34 | if (!isDict(items) || !Object.values(items).some(item => item instanceof Base)) { |
| 35 | throw new TypeError( |
| 36 | `No ActiveJS construct provided; expected at least one Unit, System, Action or Cluster; got ${String( |
| 37 | items |
| 38 | )}` |
| 39 | ); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | export function checkPath(path: (string | number)[]): void { |
| 44 | if (!path.length) { |