UNPKG

418 BJavaScriptView Raw
1import * as PropTypes from 'prop-types';
2export const elementType = PropTypes.elementType;
3export let disabled = Object.assign((...args) => PropTypes.bool(...args), {
4 acceptsArray: PropTypes.oneOfType([PropTypes.bool, PropTypes.array])
5});
6export const accessor = PropTypes.oneOfType([PropTypes.string, PropTypes.func]);
7export const message = PropTypes.oneOfType([PropTypes.node, PropTypes.string, PropTypes.func]);
\No newline at end of file