summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/shapes/Summary.js
blob: f97e66c6eb83830a342ca2c0b3091a1d0c9214f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const React  = require('react');
const { listOf } = require('react-immutable-proptypes');

const {
    shape
} = React.PropTypes;

const File = require('./File');
const Part = require('./SummaryPart');

module.exports = shape({
    file:  File.isRequired,
    parts: listOf(Part).isRequired
});