How to use the object function from prop-types
Find comprehensive JavaScript prop-types.object code examples handpicked from public code repositorys.
GitHub: BigRoomStudios/strangeluv
![BigRoomStudios profile picture](/BigRoomStudios.png?size=40)
33 34 35 36 37 38 39 40 41 42
); }; module.exports.propTypes = { middleEnd: T.shape({ store: T.object.isRequired }).isRequired, theme: T.object, Router: T.elementType };
+ 3 other calls in file
413 414 415 416 417 418 419 420 421 422 423
} createLibraryNodes.propTypes = { items: PropTypes.array.isRequired, libraryType: PropTypes.string.isRequired, contributorNodes: PropTypes.object.isRequired, createNode: PropTypes.func.isRequired, createNodeId: PropTypes.func.isRequired, createContentDigest: PropTypes.func.isRequired }
+ 8 other calls in file
GitHub: steedos/steedos-unpkg
1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159
if (process.env.NODE_ENV !== 'production') { var targetType = PropTypes.shape({ path: PropTypes.string.isRequired, type: PropTypes.oneOf(['directory', 'file']).isRequired, details: PropTypes.object.isRequired }); App.propTypes = { packageName: PropTypes.string.isRequired, packageVersion: PropTypes.string.isRequired,
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094
}, style('list')), renderSuggestions()), renderLoadingIndicator()); } SuggestionsOverlay.propTypes = { id: PropTypes.string.isRequired, suggestions: PropTypes.object.isRequired, a11ySuggestionsListLabel: PropTypes.string, focusIndex: PropTypes.number, position: PropTypes.string, left: PropTypes.number,
+ 3 other calls in file
GitHub: iustins/online-shop
2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600
className: classes })); }; exports.MDBSelectInput.propTypes = { context: PropTypes.object.isRequired, className: PropTypes.string, selected: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) }; exports.MDBSelectInput.defaultProps = {
+ 19 other calls in file
26 27 28 29 30 31 32 33 34 35 36
class App extends React.Component { static get propTypes() { return Object.assign({}, CustomizationOptionUrlPropTypes, HostSettingsUrlPropTypes, { customizationOptions: ConfigurationType, hostSettings: PropTypes.object.isRequired, internalPreview: PropTypes.bool.isRequired, selectWidget: PropTypes.func.isRequired, selectedWidget: WidgetType, selectedWidgetQuery: PropTypes.string,
+ 7 other calls in file
342 343 344 345 346 347 348
rol: PropTypes.string.isRequired // fully qualified name: the type of Context to create. // The core loads the model that defines this type, if it is not locally available. , contexttocreate: PropTypes.string // When a perspective is provided, the RoleInstances does not retrieve information from the core itself. , perspective: PropTypes.object };
+ 2 other calls in file
163 164 165 166 167 168 169 170 171 172 173 174
MapProvider.propTypes = { width: PropTypes.number, height: PropTypes.number, projection: PropTypes.oneOfType([PropTypes.string, PropTypes.func]), projectionConfig: PropTypes.object }; var ComposableMap = function ComposableMap(_ref) { var _ref$width = _ref.width,
prop-types.default is the most popular function in prop-types (2947 examples)