import { ModifyContentAction, ModifyContentActionType } from './modify-content-action.abstract';
/**
 * Insert a children before a existing children
 *
 * @example parent.apply(new InsertChildrenBeforeAction(existingChildren, newChildren, ...))
 */
export class InsertChildrenBeforeAction extends ModifyContentAction {
  constructor(referChildren, ...childrenToBeInserted) {
    super();
    this.type = ModifyContentActionType.INSERT_CHILDREN_BEFORE;
    this.referChildren = referChildren;
    this.childrenToBeInserted = childrenToBeInserted;
  }
}
