"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.validNode = void 0;
var validNode = exports.validNode = function validNode(node) {
  try {
    node.check(); // this will throw an error if the node is invalid
  } catch (error) {
    return false;
  }
  return true;
};