aboutsummaryrefslogtreecommitdiffstats
path: root/src/prop-types.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-13 12:29:40 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-10-13 12:29:40 +0200
commit58cda9cc7fb79ca9df6746de7f9662bc08dc156a (patch)
tree1211600c2a5d3b5f81c435c6896618111a611720 /src/prop-types.js
downloadferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.gz
ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.tar.zst
ferdium-app-58cda9cc7fb79ca9df6746de7f9662bc08dc156a.zip
initial commit
Diffstat (limited to 'src/prop-types.js')
-rw-r--r--src/prop-types.js14
1 files changed, 14 insertions, 0 deletions
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 @@
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});