diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-10-13 12:29:40 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2017-10-13 12:29:40 +0200 |
commit | 58cda9cc7fb79ca9df6746de7f9662bc08dc156a (patch) | |
tree | 1211600c2a5d3b5f81c435c6896618111a611720 /src/prop-types.js | |
download | ferdium-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.js | 14 |
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 @@ | |||
1 | import PropTypes from 'prop-types'; | ||
2 | |||
3 | // eslint-disable-next-line | ||
4 | export const oneOrManyChildElements = PropTypes.oneOfType([ | ||
5 | PropTypes.arrayOf(PropTypes.element), | ||
6 | PropTypes.element, | ||
7 | PropTypes.array, | ||
8 | ]); | ||
9 | |||
10 | export const globalError = PropTypes.shape({ | ||
11 | status: PropTypes.number, | ||
12 | message: PropTypes.string, | ||
13 | code: PropTypes.string, | ||
14 | }); | ||