MCPcopy Create free account
hub / github.com/activejs/activejs / checkClusterItems

Function checkClusterItems

packages/core/src/checks/common.ts:33–41  ·  view source on GitHub ↗
(items: ClusterItems)

Source from the content-addressed store, hash-verified

31}
32
33export 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
43export function checkPath(path: (string | number)[]): void {
44 if (!path.length) {

Callers 1

constructorMethod · 0.90

Calls 1

isDictFunction · 0.90

Tested by

no test coverage detected