1 2 3 4 5 6 7 8 9 10 11 12 13 14
import PropTypes from 'prop-types'; import Workspace from './models/Workspace'; export default { edit: { workspace: PropTypes.instanceOf(Workspace).isRequired, }, create: { name: PropTypes.string.isRequired, }, delete: { workspace: PropTypes.instanceOf(Workspace).isRequired, }, };