diff options
Diffstat (limited to 'vnext/src/components/Types.js')
-rw-r--r-- | vnext/src/components/Types.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vnext/src/components/Types.js b/vnext/src/components/Types.js index 2bd07458..6fba9fd3 100644 --- a/vnext/src/components/Types.js +++ b/vnext/src/components/Types.js @@ -4,3 +4,10 @@ export const UserType = PropTypes.shape({ uid: PropTypes.number.isRequired, uname: PropTypes.string.isRequired }); + +export const MessageType = PropTypes.shape({ + mid: PropTypes.number.isRequired, + user: UserType, + timestamp: PropTypes.string.isRequired, + body: PropTypes.string +}); |