function addType(typeName, type) {
  // eslint-disable-next-line security/detect-object-injection
  if (types[typeName]) {
    throw new Error('Type already registered *' + typeName + '*');
  }
  // eslint-disable-next-line security/detect-object-injection
  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
@param {string} typeName unique identifier for the type
@param {object} type
@throws {Error} if duplicate with same name was found
Adds a type @param { string } typeName unique identifier for the type @param { object } type @throws { Error } if duplicate with same name was found
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 @param { string } typeName unique identifier for the type @param { object } type @throws { Error } if duplicate with same name was found
// eslint-disable-next-line security/detect-object-injection // eslint-disable-next-line security/detect-object-injection