summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/shapes/SummaryArticle.js
blob: c93bdd9d8746a0fdb3951c8e4c75cef31a86c15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* eslint-disable no-use-before-define */

const React = require('react');
const { list } = require('react-immutable-proptypes');

const {
    string,
    number,
    shape
} = React.PropTypes;

const Article = shape({
    title:    string.isRequired,
    depth:    number.isRequired,
    path:     string,
    url:      string,
    ref:      string,
    level:    string,
    articles: list
});

module.exports = Article;