index.js
function (propType, values) {

	propType.info = Object.assign(
		propType.info ? propType.info : {},
		values
	);

	if (propType.isRequired) {
		propType.isRequired.info = Object.assign(
			propType.isRequired && propType.isRequired.info ? propType.isRequired.info : {},
			values
		);

		propType.isRequired.info.isRequired = true;
		propType.info.isRequired = false;
	}

	return propType;
}
function (propType, values) {

	propType.info = Object.assign(
		propType.info ? propType.info : {},
		values
	);

	if (propType.isRequired) {
		propType.isRequired.info = Object.assign(
			propType.isRequired && propType.isRequired.info ? propType.isRequired.info : {},
			values
		);

		propType.isRequired.info.isRequired = true;
		propType.info.isRequired = false;
	}

	return propType;
}
function ( propType , values ) { propType . info = Object . assign ( propType . info ? propType . info : { } , values ) ; if ( propType . isRequired ) { propType . isRequired . info = Object . assign ( propType . isRequired && propType . isRequired . info ? propType . isRequired . info : { } , values ) ; propType . isRequired . info . isRequired = true ; propType . info . isRequired = false ; } return propType ; }
function to add key value pair to proptype
function to add key value pair to proptype