aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Types.js
blob: 6596dc8e9595b97252629adda9091103a27208f7 (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.isRequired,
    uname: PropTypes.string
});

export const MessageType = PropTypes.shape({
    mid: PropTypes.number,
    user: UserType,
    timestamp: PropTypes.string.isRequired,
    body: PropTypes.string
});