lib/types/typeRepository.js
function addType(typeName, type) {
	if (types[typeName]) {
		throw new Error("Type already registered '" + typeName + "'");
	}
	types[typeName] = type;
}
function addType(typeName, type) {
	if (types[typeName]) {
		throw new Error("Type already registered '" + typeName + "'");
	}
	types[typeName] = type;
}
function addType ( typeName , type ) { if ( types [ typeName ] ) { throw new Error ( "Type already registered '" + typeName + "'" ) ; } types [ typeName ] = type ; }
Adds a type

@param {string} typeName unique identifier for the type
@param {Object} type
@throws {Error} if duplicate with same name was found
Adds a type