summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/shapes/SummaryArticle.js
blob: c5aa717cf3b748d73b21e9fc1405fe909efb6e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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,
    ref:      string,
    level:    string,
    articles: list
});

module.exports = Article;