summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/shapes/SummaryArticle.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-core/src/shapes/SummaryArticle.js')
-rw-r--r--packages/gitbook-core/src/shapes/SummaryArticle.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/gitbook-core/src/shapes/SummaryArticle.js b/packages/gitbook-core/src/shapes/SummaryArticle.js
new file mode 100644
index 0000000..d13bb31
--- /dev/null
+++ b/packages/gitbook-core/src/shapes/SummaryArticle.js
@@ -0,0 +1,20 @@
+/* eslint-disable no-use-before-define */
+
+const React = require('react');
+const {
+ arrayOf,
+ string,
+ number,
+ shape
+} = React.PropTypes;
+
+const Article = shape({
+ title: string.isRequired,
+ depth: number.isRequired,
+ path: string,
+ ref: string,
+ level: string,
+ articles: arrayOf(Article)
+});
+
+module.exports = Article;