function levelHasRequiredProps(level) {
    return level.setParent != null;
}
function runWarningChecks(level) {
    if (level.dragAndDropSubmit == null) {
        console.warn('dragAndDropSubmit is not defined in levelDescriptor, no server side update will be made');
    }
}
export function validateNestedTableDragAndDropProps(state) {
    if (!state.levels.every(levelHasRequiredProps)) {
        throw new Error(`NestedTableDragAndDrop: All levels must have 'setParent'`);
    }
    state.levels.forEach(runWarningChecks);
}
//# sourceMappingURL=validateNestedTableDragAndDropProps.js.map