From 58cda9cc7fb79ca9df6746de7f9662bc08dc156a Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 13 Oct 2017 12:29:40 +0200 Subject: initial commit --- src/prop-types.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/prop-types.js (limited to 'src/prop-types.js') diff --git a/src/prop-types.js b/src/prop-types.js new file mode 100644 index 000000000..459b9a7b9 --- /dev/null +++ b/src/prop-types.js @@ -0,0 +1,14 @@ +import PropTypes from 'prop-types'; + +// eslint-disable-next-line +export const oneOrManyChildElements = PropTypes.oneOfType([ + PropTypes.arrayOf(PropTypes.element), + PropTypes.element, + PropTypes.array, +]); + +export const globalError = PropTypes.shape({ + status: PropTypes.number, + message: PropTypes.string, + code: PropTypes.string, +}); -- cgit v1.2.3-54-g00ecf