-
Notifications
You must be signed in to change notification settings - Fork 17
/
PropTypes.js
49 lines (48 loc) · 1.3 KB
/
PropTypes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import PropTypes from 'prop-types';
export default {
User: PropTypes.shape( {
id: PropTypes.number.isRequired,
name: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
avatar_urls: PropTypes.shape( {
24: PropTypes.string.isRequired,
48: PropTypes.string.isRequired,
96: PropTypes.string.isRequired,
} ),
} ),
Post: PropTypes.shape( {
id: PropTypes.number.isRequired,
title: PropTypes.shape( {
raw: PropTypes.string.isRequired,
rendered: PropTypes.string.isRequired,
} ),
content: PropTypes.shape( {
raw: PropTypes.string.isRequired,
rendered: PropTypes.string.isRequired,
} ),
date: PropTypes.string,
excerpt: PropTypes.shape( {
raw: PropTypes.string.isRequired,
rendered: PropTypes.string.isRequired,
} ),
} ),
Term: PropTypes.shape( {
id: PropTypes.number.isRequired,
count: PropTypes.number.isRequired,
name: PropTypes.string.isRequired,
slug: PropTypes.string.isRequired,
parent: PropTypes.number,
} ),
Media: PropTypes.shape( {
id: PropTypes.number.isRequired,
media_details: PropTypes.object.isRequired,
} ),
Comment: PropTypes.shape( {
id: PropTypes.number.isRequired,
} ),
Type: PropTypes.shape( {
slug: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
schema: PropTypes.object.isRequired,
} ),
};