summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/shapes/Summary.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src/shapes/Summary.js')
-rw-r--r--packages/gitbook-core/src/shapes/Summary.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/gitbook-core/src/shapes/Summary.js b/packages/gitbook-core/src/shapes/Summary.js
index 7efe4e0..f97e66c 100644
--- a/packages/gitbook-core/src/shapes/Summary.js
+++ b/packages/gitbook-core/src/shapes/Summary.js
@@ -1,6 +1,7 @@
const React = require('react');
+const { listOf } = require('react-immutable-proptypes');
+
const {
- arrayOf,
shape
} = React.PropTypes;
@@ -9,5 +10,5 @@ const Part = require('./SummaryPart');
module.exports = shape({
file: File.isRequired,
- parts: arrayOf(Part).isRequired
+ parts: listOf(Part).isRequired
});