"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const Slate = require("slate");
const index = require("../index.cjs");
const hasParentOfType = (editor, nodeEntry, type, suchThat) => {
  const [, path] = nodeEntry;
  if (path.length === 1) {
    return false;
  }
  const parentPath = Slate.Path.parent(path);
  const parent = Slate.Node.get(editor, parentPath);
  return index.ContemberEditor.isElementType(parent, type, suchThat);
};
exports.hasParentOfType = hasParentOfType;
//# sourceMappingURL=hasParentOfType.cjs.map
