import validate from "../validators/validate.js";
import { BUILDER_KEYS } from "../index.js";
export default function validateNode(node) {
  const keys = BUILDER_KEYS[node.type];
  for (const key of keys) {
    validate(node, key, node[key]);
  }
  return node;
}

//# sourceMappingURL=validateNode.js.map
