1 2 3 4 5 6
import PropTypes from 'prop-types'; export const UserType = PropTypes.shape({ uid: PropTypes.number.isRequired, uname: PropTypes.string.isRequired });