mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-30 00:40:41 +05:30
28 lines
766 B
TypeScript
28 lines
766 B
TypeScript
import PropTypes from 'prop-types';
|
|
|
|
/**
|
|
* @typedef {object} User
|
|
* @property {number} id
|
|
* @property {string} uuid
|
|
* @property {string} token
|
|
* @property {string} username
|
|
* @property {string} email
|
|
* @property {string} avatar
|
|
* @property {bool} isGuest
|
|
* @property {bool} isActive
|
|
* @property {number} passwordChangedAt - timestamp
|
|
* @property {bool} hasMojangUsernameCollision
|
|
*/
|
|
export const userShape = PropTypes.shape({
|
|
id: PropTypes.number,
|
|
uuid: PropTypes.string,
|
|
token: PropTypes.string,
|
|
username: PropTypes.string,
|
|
email: PropTypes.string,
|
|
avatar: PropTypes.string,
|
|
isGuest: PropTypes.bool.isRequired,
|
|
isActive: PropTypes.bool.isRequired,
|
|
passwordChangedAt: PropTypes.number,
|
|
hasMojangUsernameCollision: PropTypes.bool,
|
|
});
|