aboutsummaryrefslogtreecommitdiffstats
path: root/src/prop-types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/prop-types.ts')
-rw-r--r--src/prop-types.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/prop-types.ts b/src/prop-types.ts
new file mode 100644
index 000000000..459b9a7b9
--- /dev/null
+++ b/src/prop-types.ts
@@ -0,0 +1,14 @@
1import PropTypes from 'prop-types';
2
3// eslint-disable-next-line
4export const oneOrManyChildElements = PropTypes.oneOfType([
5 PropTypes.arrayOf(PropTypes.element),
6 PropTypes.element,
7 PropTypes.array,
8]);
9
10export const globalError = PropTypes.shape({
11 status: PropTypes.number,
12 message: PropTypes.string,
13 code: PropTypes.string,
14});