UNPKG

stitch-ui

Version:

22 lines (19 loc) 815 B
import PropTypes from "prop-types"; import { MongoDBServiceRule, FieldRule } from "./mongodb_rule"; export const baseFieldPropTypes = { rule: PropTypes.instanceOf(MongoDBServiceRule).isRequired, fieldRule: PropTypes.instanceOf(FieldRule).isRequired, editingPath: PropTypes.object, // eslint-disable-line react/forbid-prop-types hoveringPath: PropTypes.array.isRequired, // eslint-disable-line react/forbid-prop-types depth: PropTypes.number.isRequired, addField: PropTypes.func.isRequired, setEditingPath: PropTypes.func.isRequired, pushHoveringPath: PropTypes.func.isRequired, popHoveringPath: PropTypes.func.isRequired, removeField: PropTypes.func.isRequired, setNewFieldInput: PropTypes.func.isRequired }; export const baseFieldDefaultProps = { editingPath: null, hoveringPath: [] };