diff --git a/src/lib/customPropTypes.js b/src/lib/customPropTypes.js index fe6106e93e..84cd4a661a 100644 --- a/src/lib/customPropTypes.js +++ b/src/lib/customPropTypes.js @@ -203,7 +203,7 @@ export const itemShorthand = (...args) => every([ /** * Collection shorthand ensures a prop is an array of item shorthand. */ -export const itemsShorthand = (...args) => every([ +export const collectionShorthand = (...args) => every([ disallow(['children']), PropTypes.arrayOf(itemShorthand), ])(...args)