blob: db90d41ecda259a78abca857ba9d38152728e2da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import PropTypes from 'prop-types';
export const UserType = PropTypes.shape({
uid: PropTypes.number,
uname: PropTypes.string
});
export const MessageType = PropTypes.shape({
mid: PropTypes.number,
user: UserType,
timestamp: PropTypes.string.isRequired,
body: PropTypes.string
});
|