updated `toPropTypes`