How to use the any function from prop-types

Find comprehensive JavaScript prop-types.any code examples handpicked from public code repositorys.

124
125
126
127
128
129
130
131
132
133
}),

requiredFunc: PropTypes.func.isRequired,

// A value of any data type
requiredAny: PropTypes.any.isRequired,

// You can also specify a custom validator. It should return an Error
// object if the validation fails. Don't `console.warn` or throw, as this
// won't work inside `oneOfType`.
fork icon388
star icon0
watch icon59

28
29
30
31
32
33
34
35
36
37
  onFileAdd: PropTypes.func.isRequired,
  onFileRemove: PropTypes.func.isRequired,
  onFileValidation: PropTypes.func,
  style: PropTypes.object,
  theme: themeShape,
  uploadedFile: PropTypes.any
};

state = {
  dragging: false,
fork icon61
star icon78
watch icon23

6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
PaginationLink.defaultProps = defaultProps$f;


/**
 * TabContext
 * {
 *  activeTabId: PropTypes.any
 * }
 */


var TabContext = React__default["default"].createContext({});
fork icon0
star icon0
watch icon1

3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
  checked: PropTypes.bool,
  className: PropTypes.string,
  disabled: PropTypes.bool,
  icon: PropTypes.string,
  triggerOptionClick: PropTypes.func,
  value: PropTypes.any
};
exports.MDBSelectOption.defaultProps = {
  children: "span",
  checked: false,
fork icon0
star icon0
watch icon1

+ 19 other calls in file